@font-face {
  font-family: "ChillerCustom";
  src: url("./assets/text/chiller_regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: rgba(245, 230, 215, 0.94);
  --ink-soft: rgba(232, 218, 200, 0.72);
  --ink-faint: rgba(220, 200, 180, 0.45);
  --accent: #d8b48a;
  --shadow-text: 0 0 22px rgba(0, 0, 0, 0.78), 0 0 4px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: #060102;
  color: var(--ink);
  font-family: "ChillerCustom", "Times New Roman", serif;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("./assets/background.png") center/cover no-repeat;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
  z-index: -1;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: 28px 24px 64px;
}

.panel__inner {
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto;
  min-height: calc(100svh - 92px);
  display: flex;
  flex-direction: column;
}

.panel--story .panel__inner {
  align-items: center;
}

.story-topbar {
  width: calc(100vw - 48px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-topbar::before {
  content: "";
  flex: 0 0 85px;
}

.story-topbar__chrome {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.84);
}

.brand-link {
  display: inline-flex;
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: var(--shadow-text);
  transition:
    transform 320ms ease,
    filter 320ms ease,
    color 320ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  transform: scale(1.02);
  color: #fff2e4;
  filter: drop-shadow(0 6px 32px rgba(216, 180, 138, 0.4));
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 24px 13px;
  border: 3px solid rgba(135, 240, 218, 0.48);
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 18%, rgba(220, 173, 90, 0.32), transparent 45%),
    linear-gradient(180deg, rgba(4, 54, 42, 0.96), rgba(1, 16, 14, 0.98));
  box-shadow:
    inset 0 0 0 4px rgba(1, 8, 8, 0.72),
    inset 0 0 14px rgba(0, 255, 203, 0.22),
    0 8px 14px rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-shadow: var(--shadow-text);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    filter 220ms ease;
}

.page-link:hover,
.page-link:focus-visible {
  transform: scale(1.025);
  filter: brightness(1.18);
}

.page-link--gallery {
  justify-self: start;
}

.story-topbar__chrome > .page-link:last-child {
  justify-self: end;
}

.story {
  width: min(100%, 1100px);
  display: grid;
  gap: clamp(20px, 3vh, 36px);
  justify-items: center;
  text-align: center;
  margin-top: clamp(48px, 7vh, 88px);
  --story-fade-top: 0%;
  --story-opacity: 1;
  opacity: var(--story-opacity);
  transition: opacity 180ms linear;
}

.story.is-fading {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--story-fade-top),
    rgba(0, 0, 0, 0.28) calc(var(--story-fade-top) + 10%),
    #000 calc(var(--story-fade-top) + 18%),
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--story-fade-top),
    rgba(0, 0, 0, 0.28) calc(var(--story-fade-top) + 10%),
    #000 calc(var(--story-fade-top) + 18%),
    #000 100%
  );
}

.story p {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1.25rem, 1.95vw, 2.05rem);
  line-height: 1.25;
  color: var(--ink);
  text-shadow: var(--shadow-text);
}

.story__lead,
.story__close {
  max-width: 32ch;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.story__line--hero {
  max-width: 70ch;
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
  color: #f5e8d4;
}

.panel-title {
  margin: 18px auto 36px;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  text-shadow: var(--shadow-text);
}

.gallery-lock {
  position: relative;
  align-self: center;
  width: min(100%, 1100px);
  margin: 0 auto auto;
}

.gallery-lock__soon {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: rgba(255, 241, 225, 0.96);
  font-size: clamp(3rem, 8vw, 7.5rem);
  letter-spacing: 0.18em;
  text-shadow: var(--shadow-text);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px 22px;
  width: 100%;
  filter: blur(8px) saturate(0.7) brightness(0.68);
  transform: scale(1.01);
  transform-origin: center;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 138, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.gallery-card::after {
  content: attr(data-num);
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(245, 230, 215, 0.6);
  pointer-events: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel--tray {
  --partners-height: clamp(72px, 4.91vw, 125px);
  min-height: 110svh;
  padding-bottom: 0;
}

.panel--tray .panel__inner {
  min-height: calc(100svh - 28px);
  align-items: center;
  justify-content: center;
}

.checker-anchor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tray-partners {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  overflow: hidden;
}

.tray-partners__track {
  display: flex;
  width: max-content;
  animation: partners-scroll-right 38s linear infinite;
  will-change: transform;
}

.tray-partners:hover .tray-partners__track,
.tray-partners:focus-within .tray-partners__track {
  animation-play-state: paused;
}

.tray-partners__group {
  display: flex;
  flex: 0 0 auto;
  height: var(--partners-height);
}

.tray-partners__link {
  display: block;
  flex: 0 0 auto;
  width: var(--partners-height);
  height: 100%;
  border-inline: clamp(2px, 0.14vw, 4px) solid rgba(255, 255, 255, 0.94);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.tray-partners__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tray-partners__link:hover,
.tray-partners__link:focus-visible {
  background: rgba(255, 241, 225, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 241, 225, 0.52);
  outline: none;
}

@keyframes partners-scroll-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.panel--tray .panel__footer {
  bottom: clamp(62px, 5vw, 92px);
}

.tray-login-status {
  position: absolute;
  left: 50%;
  bottom: calc(var(--partners-height) + 10px);
  z-index: 8;
  margin: 0;
  color: #fff2e1;
  font-size: clamp(1.45rem, 2.2vw, 2.4rem);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: var(--shadow-text);
  transform: translateX(-50%);
  white-space: nowrap;
}

.tray-fixed {
  --tray-partners-clearance: clamp(54px, 4.2vw, 94px);
  --tray-screen-gap: clamp(18px, 2vw, 36px);
  --tray-max-height: calc(100svh - var(--tray-partners-clearance) - var(--tray-screen-gap));
  position: absolute;
  left: 50%;
  bottom: calc(var(--tray-partners-clearance) + max(10px, env(safe-area-inset-bottom)));
  z-index: 5;
  width: min(92vw, calc(var(--tray-max-height) * 16 / 9), 1320px);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, 0%);
  transform-origin: center bottom;
  opacity: 1;
  pointer-events: none;
}

.tray-emerge {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tray-emerge {
  filter: none;
}

.tray-hand-overlays {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.tray-hand-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.tray-hand-overlay--left-grip {
  clip-path: polygon(13% 19%, 31% 19%, 31% 64%, 13% 64%);
  filter: none;
}

.tray-hand-overlay--right-grip {
  clip-path: polygon(66% 38%, 88% 38%, 88% 88%, 66% 88%);
  filter: none;
}

.tray-flow {
  position: absolute;
  top: 14.65%;
  left: 25.35%;
  z-index: 7;
  width: 53.15%;
  height: 65.85%;
  min-height: 0;
  pointer-events: auto;
}

.tray-flow__shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 1.35vw, 28px) clamp(18px, 1.45vw, 30px) clamp(16px, 1.2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9.78% / 14.03%;
  background: rgba(217, 217, 217, 0.34);
  backdrop-filter: none;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.tray-flow__shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: transparent;
  content: "";
  pointer-events: none;
}

.tray-flow__head,
.wallet-check,
.tray-form {
  position: relative;
  z-index: 1;
}

.tray-flow__head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  text-align: center;
}

.tray-flow--closed .tray-flow__shell {
  justify-content: center;
  overflow: hidden;
}

.tray-flow--closed .tray-flow__head {
  margin-bottom: clamp(16px, 1.5vw, 26px);
}

.tray-flow--closed .tray-flow__title {
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
}

.tray-flow--closed .tray-steps,
.tray-flow--closed .tray-form {
  display: none !important;
}

.wallet-check {
  display: grid;
  gap: clamp(9px, 0.8vw, 14px);
  width: min(100%, 680px);
  margin: 0 auto;
}

.wallet-check__label {
  color: rgba(255, 241, 225, 0.88);
  font-size: clamp(1rem, 1.1vw, 1.3rem);
  text-align: center;
  text-shadow: var(--shadow-text);
}

.wallet-check__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.wallet-check__button {
  min-width: 118px;
}

.wallet-check__status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(255, 241, 225, 0.82);
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  line-height: 1.2;
  text-align: center;
  text-shadow: var(--shadow-text);
}

.wallet-check__status.is-success {
  color: #b9f4d8;
}

.wallet-check__status.is-error {
  color: #ffd4d4;
}

.tray-flow--compact .tray-flow__shell {
  padding: 14px 15px 12px;
}

.tray-flow--compact .tray-flow__head {
  gap: 7px;
  margin-bottom: 10px;
}

.tray-flow--compact .tray-flow__title {
  font-size: clamp(1.55rem, 2.45vw, 2.15rem);
}

.tray-flow--closed.tray-flow--compact .tray-flow__title {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.tray-flow--compact .tray-step {
  width: 28px;
  height: 28px;
  font-size: 0.82rem;
}

.tray-flow--compact .field__label,
.tray-flow--compact .tray-note,
.tray-flow--compact .tray-done__text,
.tray-flow--compact .submit-status,
.tray-flow--compact .tweet-meta {
  font-size: 0.84rem;
  line-height: 1.34;
}

.tray-flow--compact .field__input,
.tray-flow--compact .task-link,
.tray-flow--compact .flow-button {
  padding: 9px 12px;
  border-radius: 12px;
}

.tray-flow--compact .field__input--area {
  min-height: 94px;
}

.tray-flow--tight .tray-flow__shell {
  padding: 12px 13px 10px;
}

.tray-flow--tight .tray-flow__head {
  gap: 6px;
  margin-bottom: 8px;
}

.tray-flow--tight .tray-flow__eyebrow {
  font-size: 0.64rem;
}

.tray-flow--tight .tray-flow__title {
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
}

.tray-flow--closed.tray-flow--tight .tray-flow__title {
  font-size: clamp(1.45rem, 3vw, 2.8rem);
}

.tray-flow--tight .tray-step {
  width: 24px;
  height: 24px;
  font-size: 0.74rem;
}

.tray-flow--tight .tray-panel,
.tray-flow--tight .field,
.tray-flow--tight .task-list {
  gap: 7px;
}

.tray-flow--tight .field__label,
.tray-flow--tight .tray-note,
.tray-flow--tight .tray-done__text,
.tray-flow--tight .submit-status,
.tray-flow--tight .tweet-meta {
  font-size: 0.74rem;
  line-height: 1.24;
}

.tray-flow--tight .field__input,
.tray-flow--tight .task-link,
.tray-flow--tight .flow-button {
  padding: 8px 11px;
  border-radius: 11px;
}

.tray-flow--tight .field__input--area {
  min-height: 78px;
}

.tray-flow--tight .tray-actions,
.tray-flow--tight .tweet-meta {
  flex-direction: column;
  gap: 6px;
}

.tray-flow--tight .flow-button {
  width: 100%;
  min-width: 0;
}

.tray-flow--micro .tray-flow__shell {
  padding: 10px 11px 9px;
}

.tray-flow--micro .tray-flow__title {
  font-size: clamp(1.08rem, 1.9vw, 1.42rem);
}

.tray-flow--closed.tray-flow--micro .tray-flow__title {
  font-size: clamp(1.22rem, 2.6vw, 2.25rem);
}

.tray-flow--micro .field__label,
.tray-flow--micro .tray-note,
.tray-flow--micro .tray-done__text,
.tray-flow--micro .submit-status,
.tray-flow--micro .tweet-meta {
  font-size: 0.68rem;
  line-height: 1.18;
}

.tray-flow--micro .field__input,
.tray-flow--micro .task-link,
.tray-flow--micro .flow-button {
  padding: 7px 10px;
}

.tray-flow--micro .field__input--area {
  min-height: 66px;
}

.tray-flow__eyebrow {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 233, 214, 0.76);
}

.tray-flow__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  color: #fff2e1;
  text-shadow: var(--shadow-text);
}

.tray-steps {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
}

.tray-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 241, 225, 0.68);
  font-family: "Times New Roman", serif;
  font-size: 0.95rem;
}

.tray-step.is-active,
.tray-step.is-done {
  border-color: rgba(255, 241, 225, 0.46);
  background: rgba(255, 241, 225, 0.14);
  color: #fff2e1;
}

.tray-form {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.tray-panel {
  display: grid;
  gap: clamp(10px, 0.9vw, 16px);
  align-content: start;
}

.tray-panel[hidden] {
  display: none !important;
}

.tray-panel--wallet .tray-note,
.tray-panel--wallet .submit-status {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tray-panel--wallet .submit-status {
  min-height: 1.45em;
}

.tray-panel--wallet .tray-actions {
  justify-content: stretch;
  flex-wrap: wrap;
}

.tray-panel--wallet .flow-button {
  flex: 1 1 168px;
  min-width: min(168px, 100%);
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  color: rgba(255, 241, 225, 0.88);
  font-size: clamp(0.95rem, 0.9vw, 1.1rem);
  text-shadow: var(--shadow-text);
}

.field__input {
  width: 100%;
  padding: clamp(10px, 0.8vw, 13px) clamp(12px, 0.9vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(28, 19, 17, 0.28);
  color: #fff5ec;
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.field__input::placeholder {
  color: rgba(255, 240, 227, 0.42);
}

.field__input:focus {
  border-color: rgba(255, 236, 214, 0.42);
  background: rgba(28, 19, 17, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 236, 214, 0.08);
}

.field__input--area {
  resize: vertical;
  min-height: clamp(108px, 14vh, 168px);
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.turnstile-slot {
  min-height: 65px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: clamp(10px, 0.8vw, 13px) clamp(12px, 1vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(21, 13, 11, 0.22);
  color: #fff5ec;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.task-link:hover,
.task-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 239, 220, 0.36);
  background: rgba(34, 22, 18, 0.34);
}

.task-link--primary {
  background: rgba(115, 72, 42, 0.22);
}

.task-check {
  flex: 0 0 auto;
  font-size: 1.2rem;
  color: rgba(255, 243, 230, 0.72);
}

.task-check.is-done {
  color: #b8ffc9;
}

.tweet-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: "Times New Roman", serif;
  font-size: clamp(0.82rem, 0.82vw, 0.96rem);
  color: rgba(255, 239, 220, 0.72);
}

.tray-note,
.tray-done__text,
.submit-status {
  margin: 0;
  color: rgba(255, 239, 220, 0.72);
  font-family: "Times New Roman", serif;
  font-size: clamp(0.82rem, 0.82vw, 0.98rem);
  line-height: 1.45;
}

.submit-status.is-error {
  color: #ffd4d4;
}

.tray-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2px;
}

.flow-button {
  min-width: 132px;
  padding: clamp(10px, 0.8vw, 12px) clamp(14px, 1.1vw, 18px);
  border: 1px solid rgba(255, 241, 225, 0.24);
  border-radius: 999px;
  background: rgba(255, 241, 225, 0.18);
  color: #fff6ec;
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.flow-button:hover,
.flow-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 241, 225, 0.24);
  border-color: rgba(255, 241, 225, 0.42);
}

.flow-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.flow-button--ghost {
  background: rgba(255, 255, 255, 0.05);
}

.tray-panel--done {
  text-align: center;
  justify-items: center;
  align-content: center;
  height: 100%;
}

.tray-done__eyebrow {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 0.92rem;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 239, 220, 0.68);
}

.tray-done__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 1;
  color: #fff4ea;
  text-shadow: var(--shadow-text);
}

.panel__footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--ink-faint);
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.rights-reserved {
  width: min(31vw, 300px);
  min-width: 180px;
  height: auto;
  object-fit: contain;
}

.panel__socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.panel__socials--topbar {
  gap: 9px;
}

.panel__socials--topbar .icon-link {
  width: 38px;
  height: 38px;
}

.panel__socials--topbar .icon-link:first-child img {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.88));
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.icon-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-link:hover,
.icon-link:focus-visible {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(216, 180, 138, 0.5));
}

.icon-link--disabled {
  cursor: default;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

.reveal-d1 {
  transition-delay: 80ms;
}

.reveal-d2 {
  transition-delay: 220ms;
}

.reveal-d3 {
  transition-delay: 360ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .gallery-lock {
    width: min(100%, 860px);
  }

  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tray-fixed {
    width: min(90vw, calc(var(--tray-max-height) * 16 / 9), 1080px);
  }

  .tray-flow {
    top: 14.2%;
    left: 25.6%;
    width: 52.3%;
    height: 64.2%;
  }

  .tray-flow__shell {
    padding: 16px 18px 14px;
  }

  .tray-flow__title {
    font-size: clamp(1.9rem, 3.3vw, 2.5rem);
  }

  .tray-step {
    width: 29px;
    height: 29px;
    font-size: 0.88rem;
  }

  .field__input--area {
    min-height: 112px;
  }

  .tray-panel--wallet .tray-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tray-panel--wallet .flow-button {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 1080px) and (max-aspect-ratio: 1 / 1) {
  .tray-fixed {
    width: min(84vw, calc(var(--tray-max-height) * 16 / 9), 760px);
  }

  .tray-flow {
    top: 13.4%;
    left: 24.9%;
    bottom: auto;
    width: 50.8%;
    height: 58.4%;
    transform: none;
  }

  .tray-flow__shell {
    padding: 13px 14px 12px;
    border-radius: 18px;
  }

  .tray-flow__head {
    gap: 6px;
    margin-bottom: 10px;
  }

  .tray-flow__eyebrow {
    font-size: 0.64rem;
  }

  .tray-flow__title {
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  }

  .tray-step {
    width: 24px;
    height: 24px;
    font-size: 0.76rem;
  }

  .tray-panel {
    gap: 8px;
  }

  .field {
    gap: 6px;
  }

  .field__label,
  .tray-note,
  .tray-done__text,
  .submit-status,
  .tweet-meta {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .field__input,
  .task-link,
  .flow-button {
    padding: 8px 12px;
    border-radius: 12px;
  }

  .field__input--area {
    min-height: 84px;
  }

  .tray-actions {
    flex-direction: column;
    gap: 8px;
  }

  .flow-button {
    width: 100%;
    min-width: 0;
  }

  .tweet-meta {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-height: 920px) and (min-width: 761px) {
  .tray-fixed {
    width: min(88vw, calc(var(--tray-max-height) * 16 / 9), 1260px);
  }

  .tray-flow__shell {
    padding: 16px 18px 14px;
  }

  .tray-flow__head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .tray-flow__title {
    font-size: clamp(1.8rem, 2.35vw, 2.5rem);
  }

  .tray-step {
    width: 29px;
    height: 29px;
    font-size: 0.88rem;
  }

  .field__input,
  .task-link,
  .flow-button {
    padding: 10px 14px;
  }

  .field__input--area {
    min-height: 108px;
  }

  .field__label,
  .tray-note,
  .tray-done__text,
  .submit-status,
  .tweet-meta {
    font-size: 0.9rem;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .tray-fixed {
    width: min(84vw, calc(var(--tray-max-height) * 16 / 9), 1120px);
  }

  .tray-flow {
    top: 15.1%;
    height: 64.8%;
  }

  .tray-flow__shell {
    padding: 14px 16px 12px;
  }

  .tray-flow__eyebrow {
    font-size: 0.72rem;
  }

  .tray-flow__title {
    font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  }

  .tray-step {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .tray-panel {
    gap: 9px;
  }

  .field {
    gap: 6px;
  }

  .field__label,
  .tray-note,
  .tray-done__text,
  .submit-status,
  .tweet-meta {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .tray-actions {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .story-topbar {
    width: calc(100vw - 32px);
    gap: 7px;
  }

  .story-topbar::before {
    display: none;
  }

  .story-topbar__chrome {
    gap: 8px;
    min-height: 58px;
    padding: 6px 8px;
  }

  .brand-link {
    font-size: clamp(1.45rem, 6.8vw, 2.8rem);
  }

  .page-link {
    min-height: 40px;
    padding: 8px 13px 10px;
    border-width: 2px;
    box-shadow:
      inset 0 0 0 3px rgba(1, 8, 8, 0.72),
      inset 0 0 10px rgba(0, 255, 203, 0.22),
      0 6px 10px rgba(0, 0, 0, 0.32);
    font-size: 0.92rem;
  }

  .panel__socials--topbar {
    gap: 5px;
  }

  .panel__socials--topbar .icon-link {
    width: 27px;
    height: 27px;
  }

  .story {
    margin-top: clamp(36px, 8vh, 72px);
  }

  .panel-title {
    font-size: clamp(3.4rem, 15vw, 5.8rem);
    margin-bottom: 28px;
  }

  .gallery-lock {
    width: min(100%, 520px);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel {
    padding: 24px 16px 80px;
  }

  .tray-fixed {
    --tray-partners-clearance: clamp(38px, 10vw, 72px);
    --tray-screen-gap: 18px;
    width: min(124vw, calc(var(--tray-max-height) * 16 / 9), 760px);
  }

  .tray-emerge {
    width: 100%;
    height: 100%;
  }

  .tray-flow {
    top: 13.5%;
    left: 50%;
    bottom: auto;
    width: min(47vw, 286px);
    height: 58.8%;
    transform: translateX(-50%);
  }

  .tray-flow.reveal,
  .tray-flow.reveal.is-visible {
    transform: translateX(-50%);
  }

  .tray-flow__shell {
    padding: 12px 13px 10px;
    border-radius: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tray-flow__head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .tray-flow__eyebrow {
    font-size: 0.64rem;
  }

  .tray-flow__title {
    font-size: clamp(1.3rem, 6vw, 1.85rem);
  }

  .tray-step {
    width: 24px;
    height: 24px;
    font-size: 0.74rem;
  }

  .tray-panel {
    gap: 8px;
  }

  .tray-panel--wallet {
    gap: 8px;
  }

  .field__label {
    font-size: 0.76rem;
  }

  .field__input,
  .task-link {
    border-radius: 11px;
  }

  .field__input--area {
    min-height: 78px;
  }

  .tray-actions {
    flex-direction: column;
    gap: 6px;
  }

  .flow-button {
    width: 100%;
    min-width: 0;
  }

  .tweet-meta {
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
  }
}

@media (max-width: 460px) {
  .story-topbar {
    gap: 5px;
  }

  .story-topbar__chrome {
    gap: 5px;
    padding-inline: 6px;
  }

  .brand-link {
    font-size: clamp(1.08rem, 5.7vw, 1.5rem);
    letter-spacing: 0.03em;
  }

  .page-link {
    min-height: 34px;
    padding: 7px 10px 8px;
    font-size: 0.76rem;
  }

  .panel__socials--topbar {
    gap: 3px;
  }

  .panel__socials--topbar .icon-link {
    width: 22px;
    height: 22px;
  }

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

  .tray-fixed {
    --tray-partners-clearance: clamp(32px, 9vw, 62px);
    width: min(132vw, calc(var(--tray-max-height) * 16 / 9), 720px);
  }

  .tray-flow {
    top: 13.3%;
    left: 50%;
    width: min(47vw, 286px);
    height: 59.2%;
    transform: translateX(-50%);
  }

  .tray-flow__shell {
    padding: 10px 11px 9px;
    border-radius: 16px;
  }

  .tray-panel--wallet .tray-note,
  .tray-panel--wallet .submit-status {
    font-size: 0.7rem;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .tray-emerge {
    opacity: 1 !important;
  }

  .reveal:not(.tray-flow) {
    transform: none !important;
  }

  .tray-emerge {
    transform: translate(-50%, 22%) !important;
  }

  .tray-partners__track {
    transform: translateX(0) !important;
  }

  .story {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1 !important;
  }
}
