:root {
  --bg: #08080c;
  --ink: #f7f2d9;
  --acid: #ff2d55;
  --burn: #ff6a00;
  --toxic: #39ff14;
  --electric: #00e5ff;
  --card: rgba(10, 8, 13, 0.82);
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.34);
  --shadow: rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Lacquer", system-ui, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 106, 0, 0.42) 0, transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 45, 85, 0.48) 0, transparent 30%),
    radial-gradient(circle at 28% 78%, rgba(57, 255, 20, 0.25) 0, transparent 28%),
    radial-gradient(circle at 76% 84%, rgba(0, 229, 255, 0.22) 0, transparent 26%),
    linear-gradient(180deg, #040406 0%, #09090d 50%, #050507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(255, 255, 255, 0.03) 46%, transparent 47% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 28px);
  mix-blend-mode: screen;
  opacity: 0.45;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.72) 100%);
}

.art-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  animation: jitter 9s steps(24) infinite;
  opacity: 0.9;
}

.art-layer.one {
  opacity: 0.28;
  background:
    conic-gradient(from 35deg at 22% 26%, transparent 0 45deg, rgba(255,45,85,.42) 46deg 118deg, transparent 119deg 360deg),
    conic-gradient(from 230deg at 76% 24%, transparent 0 30deg, rgba(255,106,0,.38) 31deg 104deg, transparent 105deg 360deg),
    linear-gradient(112deg, rgba(255,45,85,.22), transparent 44%, rgba(0,229,255,.18) 73%, transparent 85%);
}

.art-layer.two {
  opacity: 0.2;
  animation-duration: 11s;
  mix-blend-mode: color-dodge;
  background:
    radial-gradient(ellipse at 18% 68%, rgba(0,229,255,.28) 0, transparent 34%),
    radial-gradient(ellipse at 74% 66%, rgba(57,255,20,.22) 0, transparent 36%),
    repeating-linear-gradient(77deg, transparent 0 18px, rgba(255,255,255,.035) 19px 20px);
}

.art-layer.three {
  opacity: 0.18;
  animation-duration: 13s;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.06), transparent 22%),
    radial-gradient(circle at 22% 82%, rgba(255,106,0,.20), transparent 18%),
    radial-gradient(circle at 84% 74%, rgba(255,45,85,.16), transparent 20%);
  filter: blur(1px);
}

@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(3px, -2px) rotate(-0.2deg); }
  40% { transform: translate(-4px, 2px) rotate(0.18deg); }
  60% { transform: translate(5px, 3px) rotate(-0.12deg); }
  80% { transform: translate(-2px, -3px) rotate(0.16deg); }
}

.wrap {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.top-stamp {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px 8px 16px 10px;
  background: rgba(0,0,0,0.52);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.hero {
  position: relative;
  padding: 0.4rem 0 1.2rem;
}

.headline {
  position: relative;
  display: inline-block;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  margin: 0;
  line-height: 0.88;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow:
    -3px 0 var(--acid),
    2px -1px var(--electric),
    0 3px var(--burn);
  transform: rotate(-1.4deg);
}

.headline span {
  display: block;
  font-size: 0.46em;
  letter-spacing: 0.18em;
  margin-top: 0.2em;
  opacity: 0.92;
}

.headline::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -2%;
  top: 52%;
  height: 0.42em;
  background: rgba(255, 45, 85, 0.22);
  transform: rotate(-3deg);
  filter: blur(18px);
  z-index: -1;
}

.sub {
  max-width: 760px;
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0e9d2;
  text-shadow: 0 1px rgba(0, 0, 0, 0.55);
  transform: rotate(-0.3deg);
}

.small-note {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  max-width: 760px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 8, 13, 0.72);
  border-radius: 18px 11px 20px 9px;
  transform: rotate(0.7deg);
  box-shadow: 0 16px 30px rgba(0,0,0,0.28);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 360px) minmax(300px, 1fr);
  margin-top: 1.4rem;
  align-items: start;
}

.artifact-panel,
.panel {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 1.1rem;
  border-radius: 22px 10px 24px 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 34px var(--shadow);
}

.artifact-panel {
  transform: rotate(-1.8deg);
}

.panel {
  transform: rotate(0.9deg);
}

.artifact-panel::before,
.panel::before {
  content: "";
  position: absolute;
  inset: -28% 10% auto -20%;
  height: 180px;
  background:
    linear-gradient(135deg, rgba(255,45,85,.32), transparent 52%, rgba(0,229,255,.24)),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,.08), transparent 70%);
  transform: rotate(8deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

.artifact-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 46%, rgba(255,255,255,.06) 47%, transparent 49% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 9px);
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.artifact-id {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.52);
  border-radius: 14px 7px 15px 9px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247,242,217,0.8);
}

.artifact-text {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-0.7deg);
}

.artifact-mark {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px dashed rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.3);
  border-radius: 16px 11px 18px 9px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,242,217,0.72);
  transform: rotate(0.9deg);
}

.artifact-line {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
}

.mini-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,242,217,0.5);
}

.access-state {
  margin-top: 0.6rem;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 14px 9px 16px 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
}

.access-state.locked {
  background: rgba(255,45,85,.14);
  color: #ffd9e1;
}

.access-state.unlocked {
  background: rgba(57,255,20,.12);
  color: #d8ffd0;
}

.panel-head {
  margin-bottom: 0.9rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-0.8deg);
}

.panel-head p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(247,242,217,0.72);
}

.requirements {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(0,0,0,.45);
  border: 1.5px solid rgba(255,255,255,.15);
  clip-path: polygon(
    2% 0%,
    98% 3%,
    100% 94%,
    95% 100%,
    3% 96%,
    0% 7%
  );
  transform: rotate(-0.6deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.task-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.task-number {
  font-size: 2rem;
  color: var(--acid);
  font-weight: bold;
  flex: 0 0 auto;
  text-shadow: 0 0 12px rgba(255,45,85,0.25);
}

.task-content {
  flex: 1;
}

.task-content h3 {
  margin: 0;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 1rem;
}

.task-content p {
  margin: 4px 0 0;
  opacity: .7;
  font-size: .85rem;
  line-height: 1.45;
}

.task-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 108px;
  margin-top: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(95deg, var(--acid), var(--burn), var(--toxic));
  color: #0a0a0a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-radius: 12px 9px 14px 10px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  transform: rotate(-1deg);
}

.task-btn.done {
  background: linear-gradient(95deg, #d8ffd0, #98ff7f);
}

.task-btn:hover {
  filter: saturate(1.18) brightness(1.05);
}

.status {
  padding: 0.8rem;
  margin-bottom: 0.7rem;
  border: 1.6px solid;
  font-size: 0.9rem;
  border-radius: 10px 14px 11px 16px;
}

.status.success {
  border-color: rgba(57,255,20,.65);
  background: rgba(57,255,20,.08);
}

.status.error {
  border-color: rgba(255,45,85,.8);
  background: rgba(255,45,85,.14);
}

.status.info {
  border-color: rgba(0,229,255,.55);
  background: rgba(0,229,255,.08);
}

.hidden {
  display: none;
}

form {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

form.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

form.unlocked {
  opacity: 1;
  filter: none;
}

label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 242, 217, 0.75);
}

input,
textarea,
button {
  width: 100%;
  border: 1.6px solid rgba(255,255,255,.26);
  background:
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.72)),
    rgba(0,0,0,.4);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  border-radius: 13px 9px 15px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.35);
}

input {
  transform: rotate(-0.25deg);
}

textarea {
  min-height: 100px;
  resize: vertical;
  transform: rotate(0.35deg);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 242, 217, 0.28);
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(57,255,20,.88);
  box-shadow:
    0 0 0 2px rgba(57,255,20,.18),
    0 0 22px rgba(57,255,20,.1);
}

button[type="submit"] {
  margin-top: 0.3rem;
  border: 0;
  background: linear-gradient(95deg, var(--acid), var(--burn), var(--toxic));
  color: #090909;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transform: rotate(-0.75deg);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255,255,255,0.15);
}

button[type="submit"]:hover {
  transform: rotate(0.4deg) translateY(-1px);
  filter: saturate(1.15) brightness(1.06);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255,255,255,0.22);
}

button[type="submit"]:active {
  transform: rotate(0deg) translateY(1px) scale(0.995);
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.floating-word {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  font-size: clamp(1rem, 2vw, 2rem);
  letter-spacing: 0.25em;
  opacity: 0.08;
  mix-blend-mode: screen;
  text-transform: uppercase;
  animation: drift 12s ease-in-out infinite;
}

.word-1 { top: 13%; left: 7%; transform: rotate(-18deg); }
.word-2 { top: 22%; right: 9%; transform: rotate(16deg); animation-duration: 14s; }
.word-3 { top: 68%; left: 10%; transform: rotate(-8deg); animation-duration: 13s; }
.word-4 { top: 74%; right: 12%; transform: rotate(22deg); animation-duration: 15s; }
.word-5 { top: 42%; left: 75%; transform: rotate(-6deg); animation-duration: 11s; }
.word-6 { top: 56%; left: 28%; transform: rotate(10deg); animation-duration: 16s; }

@keyframes drift {
  0%, 100% { translate: 0 0; }
  25% { translate: 8px -4px; }
  50% { translate: -6px 5px; }
  75% { translate: 4px 7px; }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .artifact-panel,
  .panel {
    transform: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 1.2rem 0.85rem 2rem;
  }

  .headline {
    letter-spacing: 0.08em;
  }

  .sub {
    font-size: 0.98rem;
  }

  .panel-head h2 {
    font-size: 1.3rem;
  }

  .task-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-btn {
    width: 100%;
  }

  .floating-word {
    display: none;
  }
}