:root {
  --paper: #050505;
  --ink: #effcff;
  --muted: #a7b8c8;
  --purple: #a020f0;
  --green: #39ff14;
  --cyan: #00ffff;
  --line: rgba(160, 32, 240, 0.24);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --panel: rgba(10, 10, 16, 0.82);
  --panel-strong: rgba(8, 8, 12, 0.94);
  --container: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 16, 0.74);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(160, 32, 240, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  margin-top: 1rem;
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 0.92;
}

.hero p {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  font-family: "SFMono-Regular", "SFMono", "Consolas", monospace;
  font-size: 0.92em;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.summary-strip div {
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.summary-strip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-panel,
.upload-gallery-section {
  margin-bottom: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr) minmax(16rem, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.upload-panel h2,
.section-head h2 {
  margin: 0.8rem 0 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.upload-copy p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.upload-rules {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.upload-rules li + li {
  margin-top: 0.4rem;
}

.upload-form,
.upload-preview {
  min-height: 100%;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.upload-form {
  display: grid;
  gap: 0.9rem;
}

.upload-field {
  display: grid;
  gap: 0.5rem;
  font-weight: 800;
}

.upload-field input {
  width: 100%;
  padding: 0.9rem;
  border: 1px dashed rgba(0, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(8, 8, 12, 0.78);
  color: var(--ink);
}

.upload-button {
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #050505;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.16);
}

.upload-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.upload-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-status[data-tone="success"] {
  color: var(--green);
}

.upload-status[data-tone="error"] {
  color: var(--purple);
}

.upload-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(160, 32, 240, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(0, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(11, 11, 18, 0.94), rgba(6, 6, 10, 0.96));
}

.preview-empty,
.gallery-empty {
  color: var(--muted);
  font-weight: 700;
}

.preview-card {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.preview-card img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(8, 8, 12, 0.86);
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

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

.upload-item {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.upload-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(8, 8, 12, 0.84);
}

.upload-item-head {
  display: grid;
  gap: 0.35rem;
}

.upload-item-head strong {
  font-size: 0.92rem;
}

.upload-item-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.upload-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.upload-item-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(28, 29, 33, 0.06);
}

.upload-item-actions a:first-child {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #050505;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 58% 42% 62% 38%;
  background: rgba(0, 255, 255, 0.12);
  pointer-events: none;
}

.card:nth-child(1) {
  transform: rotate(-1.5deg);
}

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

.card:nth-child(3) {
  transform: rotate(-1deg);
}

.card-head {
  display: grid;
  gap: 0.55rem;
}

.card-index {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(160, 32, 240, 0.14);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.artboard {
  padding: 0.85rem;
  border-radius: 28px;
  border: 1px solid rgba(0, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 18%, rgba(160, 32, 240, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(11, 11, 18, 0.94), rgba(6, 6, 10, 0.96));
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actions a:first-child {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #050505;
  box-shadow: 0 0 20px rgba(160, 32, 240, 0.16);
}

.actions a:last-child {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .upload-panel,
  .upload-gallery {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100vw - 1rem, 100%);
    padding-top: 1rem;
  }

  .hero,
  .card,
  .upload-panel,
  .upload-gallery-section {
    padding: 1rem;
  }

  .actions,
  .upload-item-actions {
    flex-direction: column;
  }
}
