/* UPTOBER PFP FORGE V1 START */

#pfp-forge {
  scroll-margin-top: 88px;
}

.uptober-pfp-forge {
  position: relative;
  overflow: hidden;
  padding:
    clamp(84px, 9vw, 150px)
    clamp(18px, 4vw, 72px);
  border-top:
    1px solid
    rgba(200, 255, 0, 0.14);
  border-bottom:
    1px solid
    rgba(200, 255, 0, 0.1);
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(200, 255, 0, 0.09),
      transparent 30rem
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(200, 255, 0, 0.055),
      transparent 34rem
    ),
    #020503;
}

.uptober-pfp-forge::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(
      rgba(200, 255, 0, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(200, 255, 0, 0.035) 1px,
      transparent 1px
    );
  background-size: 54px 54px;
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      #000 16% 84%,
      transparent
    );
}

.uptober-pfp-inner {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  margin-inline: auto;
}

.uptober-pfp-heading {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(260px, 440px);
  gap: 32px;
  align-items: end;
  margin-bottom:
    clamp(34px, 5vw, 64px);
}

.uptober-pfp-kicker {
  margin: 0 0 12px;
  color: var(--green, #c8ff00);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.uptober-pfp-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size:
    clamp(3rem, 7vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.uptober-pfp-heading h2 span {
  display: block;
  color: var(--green, #c8ff00);
}

.uptober-pfp-heading-copy {
  margin: 0;
  color:
    rgba(239, 245, 232, 0.62);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size:
    clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}

.uptober-pfp-grid {
  display: grid;
  grid-template-columns:
    minmax(300px, 0.8fr)
    minmax(420px, 1.2fr);
  gap:
    clamp(24px, 4vw, 54px);
  align-items: start;
}

.uptober-pfp-preview-card,
.uptober-pfp-workbench {
  border:
    1px solid
    rgba(200, 255, 0, 0.2);
  border-radius: 24px;
  background:
    rgba(2, 8, 4, 0.78);
  box-shadow:
    inset 0 0 70px
    rgba(200, 255, 0, 0.025);
}

.uptober-pfp-preview-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.uptober-pfp-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.uptober-pfp-preview-head span,
.uptober-pfp-preview-head strong {
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.uptober-pfp-preview-head span {
  color:
    rgba(255, 255, 255, 0.4);
}

.uptober-pfp-preview-head strong {
  color: var(--green, #c8ff00);
}

.uptober-pfp-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border:
    1px solid
    rgba(200, 255, 0, 0.2);
  border-radius: 18px;
  background: #071000;
}

.uptober-pfp-preview img,
.uptober-pfp-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uptober-pfp-preview canvas[hidden],
.uptober-pfp-preview img[hidden] {
  display: none;
}

.uptober-pfp-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow:
    inset 0 0 50px
    rgba(200, 255, 0, 0.08);
}

.uptober-pfp-preview-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding:
    13px
    14px;
  border:
    1px solid
    rgba(200, 255, 0, 0.12);
  border-radius: 12px;
  color:
    rgba(255, 255, 255, 0.44);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.uptober-pfp-preview-status strong {
  color: var(--green, #c8ff00);
}

.uptober-pfp-workbench {
  padding:
    clamp(18px, 3vw, 30px);
}

.uptober-pfp-step {
  display: grid;
  grid-template-columns:
    44px
    minmax(0, 1fr);
  gap: 16px;
  padding:
    22px
    0;
  border-bottom:
    1px solid
    rgba(200, 255, 0, 0.1);
}

.uptober-pfp-step:first-child {
  padding-top: 0;
}

.uptober-pfp-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.uptober-pfp-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border:
    1px solid
    rgba(200, 255, 0, 0.3);
  border-radius: 50%;
  color: var(--green, #c8ff00);
  font-size: 0.7rem;
  font-weight: 900;
}

.uptober-pfp-step-body h3 {
  margin:
    4px
    0
    8px;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.uptober-pfp-step-body > p {
  margin: 0 0 14px;
  color:
    rgba(255, 255, 255, 0.48);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}

.uptober-pfp-action,
.uptober-pfp-ai-link,
.uptober-pfp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding:
    0
    18px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.uptober-pfp-action {
  border:
    1px solid
    var(--green, #c8ff00);
  background:
    var(--green, #c8ff00);
  color: #071000;
}

.uptober-pfp-secondary,
.uptober-pfp-ai-link {
  border:
    1px solid
    rgba(200, 255, 0, 0.28);
  background:
    rgba(0, 0, 0, 0.28);
  color:
    rgba(255, 255, 255, 0.82);
}

.uptober-pfp-action:hover,
.uptober-pfp-action:focus-visible,
.uptober-pfp-secondary:hover,
.uptober-pfp-secondary:focus-visible,
.uptober-pfp-ai-link:hover,
.uptober-pfp-ai-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color:
    rgba(200, 255, 0, 0.8);
}

.uptober-pfp-action:disabled,
.uptober-pfp-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  transform: none;
}

.uptober-pfp-ai-row,
.uptober-pfp-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.uptober-pfp-ai-link {
  flex: 1 1 180px;
}

.uptober-pfp-prompt-details {
  margin-top: 12px;
}

.uptober-pfp-prompt-details summary {
  cursor: pointer;
  color:
    rgba(200, 255, 0, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.uptober-pfp-prompt-details pre {
  max-height: 260px;
  overflow: auto;
  margin:
    12px
    0
    0;
  padding: 14px;
  border:
    1px solid
    rgba(200, 255, 0, 0.12);
  border-radius: 12px;
  background:
    rgba(0, 0, 0, 0.35);
  color:
    rgba(255, 255, 255, 0.58);
  font:
    0.7rem/1.6
    "Courier New",
    monospace;
  white-space: pre-wrap;
}

.uptober-pfp-drop {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border:
    1px dashed
    rgba(200, 255, 0, 0.35);
  border-radius: 16px;
  background:
    rgba(200, 255, 0, 0.025);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.uptober-pfp-drop:hover,
.uptober-pfp-drop.is-dragging {
  border-color:
    var(--green, #c8ff00);
  background:
    rgba(200, 255, 0, 0.07);
}

.uptober-pfp-drop strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green, #c8ff00);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uptober-pfp-drop span {
  color:
    rgba(255, 255, 255, 0.42);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 0.78rem;
}

.uptober-pfp-controls {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.uptober-pfp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding:
    0
    13px;
  border:
    1px solid
    rgba(200, 255, 0, 0.16);
  border-radius: 11px;
  color:
    rgba(255, 255, 255, 0.64);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.uptober-pfp-toggle input {
  accent-color:
    var(--green, #c8ff00);
}

.uptober-pfp-caption-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.uptober-pfp-caption-field span {
  color:
    rgba(255, 255, 255, 0.38);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uptober-pfp-caption-field input {
  width: 100%;
  min-height: 48px;
  padding:
    0
    14px;
  border:
    1px solid
    rgba(200, 255, 0, 0.2);
  border-radius: 11px;
  outline: none;
  background:
    rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font: inherit;
}

.uptober-pfp-caption-field input:focus {
  border-color:
    rgba(200, 255, 0, 0.7);
}

.uptober-pfp-output-actions {
  margin-top: 14px;
}

.uptober-pfp-output-actions > * {
  flex: 1 1 170px;
}

.uptober-pfp-privacy {
  margin:
    18px
    0
    0;
  color:
    rgba(255, 255, 255, 0.3);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.uptober-pfp-status {
  min-height: 20px;
  margin:
    24px
    0
    0;
  color:
    rgba(200, 255, 0, 0.72);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .uptober-pfp-heading,
  .uptober-pfp-grid {
    grid-template-columns: 1fr;
  }

  .uptober-pfp-preview-card {
    position: relative;
    top: auto;
    width: min(620px, 100%);
  }
}

@media (max-width: 620px) {
  .uptober-pfp-forge {
    padding:
      74px
      18px;
  }

  .uptober-pfp-heading h2 {
    font-size:
      clamp(2.8rem, 15vw, 4.8rem);
  }

  .uptober-pfp-preview-card,
  .uptober-pfp-workbench {
    border-radius: 18px;
  }

  .uptober-pfp-workbench {
    padding: 16px;
  }

  .uptober-pfp-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .uptober-pfp-step-number {
    width: 38px;
    height: 38px;
  }

  .uptober-pfp-controls {
    grid-template-columns: 1fr;
  }

  .uptober-pfp-action,
  .uptober-pfp-ai-link,
  .uptober-pfp-secondary,
  .uptober-pfp-output-actions > * {
    width: 100%;
    flex-basis: 100%;
  }
}

/* UPTOBER PFP FORGE V1 END */

/* UPTOBER GREEN WALL V1 START */

.uptober-pfp-community-submit {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border:
    1px solid
    rgba(200, 255, 0, 0.16);
  border-radius: 14px;
  background:
    rgba(200, 255, 0, 0.025);
}

.uptober-pfp-community-submit h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uptober-pfp-community-submit > p {
  margin: 0;
  color:
    rgba(255, 255, 255, 0.42);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 0.76rem;
  line-height: 1.55;
}

.uptober-green-wall-handle {
  display: grid;
  gap: 7px;
}

.uptober-green-wall-handle > span {
  color:
    rgba(255, 255, 255, 0.38);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uptober-green-wall-handle input {
  width: 100%;
  min-height: 48px;
  padding:
    0
    14px;
  border:
    1px solid
    rgba(200, 255, 0, 0.2);
  border-radius: 11px;
  outline: none;
  background:
    rgba(0, 0, 0, 0.34);
  color: #ffffff;
  font: inherit;
}

.uptober-green-wall-handle input:focus {
  border-color:
    rgba(200, 255, 0, 0.7);
}

.uptober-green-wall-submit-status {
  min-height: 18px;
  margin: 0;
  color:
    rgba(200, 255, 0, 0.68);
  font-size: 0.62rem;
  line-height: 1.5;
}

.uptober-green-wall-submit-status[data-state="error"] {
  color: #ff708c;
}

.uptober-green-wall-submit-status[data-state="success"] {
  color: var(--green, #c8ff00);
}

.uptober-green-wall {
  position: relative;
  overflow: hidden;
  padding:
    clamp(78px, 8vw, 130px)
    0;
  border-bottom:
    1px solid
    rgba(200, 255, 0, 0.1);
  background:
    radial-gradient(
      circle at center,
      rgba(200, 255, 0, 0.055),
      transparent 36rem
    ),
    #020503;
}

.uptober-green-wall-heading {
  width:
    min(
      1380px,
      calc(100% - 40px)
    );
  margin:
    0
    auto
    clamp(34px, 5vw, 58px);
}

.uptober-green-wall-heading > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.uptober-green-wall-heading h2 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size:
    clamp(3rem, 7vw, 6.7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.uptober-green-wall-heading h2 span {
  display: block;
  color: var(--green, #c8ff00);
}

.uptober-green-wall-status {
  flex: 0 0 auto;
  margin: 0;
  color:
    rgba(255, 255, 255, 0.4);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uptober-green-wall-rows {
  display: grid;
  gap: 16px;
}

.uptober-green-wall-row {
  width: 100%;
  overflow: hidden;
}

.uptober-green-wall-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation:
    uptober-green-wall-left
    42s
    linear
    infinite;
  will-change: transform;
}

.uptober-green-wall-row:nth-child(2)
.uptober-green-wall-track {
  animation-name:
    uptober-green-wall-right;
  animation-duration:
    48s;
}

.uptober-green-wall-row:hover
.uptober-green-wall-track {
  animation-play-state:
    paused;
}

.uptober-green-wall-row.is-static
.uptober-green-wall-track {
  width: 100%;
  animation: none;
}

.uptober-green-wall-group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.uptober-green-wall-row.is-static
.uptober-green-wall-group {
  justify-content: center;
  width: 100%;
  padding:
    0
    20px;
}

.uptober-green-wall-card {
  position: relative;
  flex:
    0
    0
    clamp(160px, 15vw, 230px);
  overflow: hidden;
  aspect-ratio: 1;
  border:
    1px solid
    rgba(200, 255, 0, 0.18);
  border-radius: 18px;
  background: #071000;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.uptober-green-wall-card:hover,
.uptober-green-wall-card:focus-visible {
  z-index: 2;
  border-color:
    rgba(200, 255, 0, 0.72);
  outline: none;
  box-shadow:
    0 0 34px
    rgba(200, 255, 0, 0.12);
  transform:
    scale(1.035);
}

.uptober-green-wall-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uptober-green-wall-card > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding:
    40px
    12px
    11px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(0, 0, 0, 0.9)
    );
}

.uptober-green-wall-card strong {
  color: var(--green, #c8ff00);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.uptober-green-wall-card small {
  overflow: hidden;
  color:
    rgba(255, 255, 255, 0.66);
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uptober-green-wall-empty {
  display: grid;
  place-items: center;
  width:
    min(
      900px,
      calc(100% - 40px)
    );
  min-height: 150px;
  margin-inline: auto;
  border:
    1px dashed
    rgba(200, 255, 0, 0.18);
  border-radius: 18px;
  color:
    rgba(200, 255, 0, 0.46);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

@keyframes uptober-green-wall-left {
  from {
    transform:
      translateX(0);
  }

  to {
    transform:
      translateX(-50%);
  }
}

@keyframes uptober-green-wall-right {
  from {
    transform:
      translateX(-50%);
  }

  to {
    transform:
      translateX(0);
  }
}

@media (max-width: 620px) {
  .uptober-green-wall-heading {
    width:
      calc(100% - 36px);
  }

  .uptober-green-wall-heading > div {
    align-items:
      flex-start;
    flex-direction:
      column;
  }

  .uptober-green-wall-card {
    flex-basis:
      148px;
    border-radius:
      14px;
  }

  .uptober-green-wall-track,
  .uptober-green-wall-row:nth-child(2)
  .uptober-green-wall-track {
    animation-duration:
      34s;
  }

  .uptober-pfp-community-submit
  .uptober-pfp-action {
    width: 100%;
  }
}

@media (
  prefers-reduced-motion:
  reduce
) {
  .uptober-green-wall-track,
  .uptober-green-wall-row:nth-child(2)
  .uptober-green-wall-track {
    animation: none;
    transform: none;
  }
}

/* UPTOBER GREEN WALL V1 END */


/* UPTOBER GREEN WALL STATUS GAP V1 START */

/*
 * Keep the community-submit card visually separate
 * from the local Forge status below it.
 */
.uptober-pfp-community-submit {
  margin-bottom: 26px;
}

.uptober-pfp-community-submit + .uptober-pfp-status {
  margin-top: 0;
}

@media (max-width: 620px) {
  .uptober-pfp-community-submit {
    margin-bottom: 20px;
  }
}

/* UPTOBER GREEN WALL STATUS GAP V1 END */


/* UPTOBER PFP TEMPLATE FIT V1 START */

/*
 * The source template can be portrait-oriented.
 * Never crop the template inside the square Forge preview.
 * The generated canvas remains full-bleed separately.
 */
.uptober-pfp-preview img[data-pfp-template-preview] {
  object-fit: contain;
  object-position: center center;
  background: #071000;
}

/* UPTOBER PFP TEMPLATE FIT V1 END */
