@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("/Fonts and Logos/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("/Fonts and Logos/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --bg: #efecdf;
  --card: #24221e;
  --panel-border: rgba(255, 248, 236, 0.08);
  --slot-border: rgba(255, 248, 236, 0.075);
  --text: #f4efe5;
  --muted: rgba(244, 239, 229, 0.68);
  --subtle: rgba(244, 239, 229, 0.34);
  --accent: #dfd08a;
  --accent-progress: #f0dd91;
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 37, 34, 0.055), transparent 32%),
    linear-gradient(180deg, #efecdf 0%, #e9e5d7 100%);
  background-attachment: fixed, fixed;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px 24px 18px;
}

.ambient {
  pointer-events: none;
  position: absolute;
}

.ambient-stain {
  top: -132px;
  left: -178px;
  width: 430px;
  height: 430px;
  opacity: 0.42;
  object-fit: contain;
  filter: brightness(0) saturate(1) opacity(0.9);
  z-index: -1;
}

.ambient-wash {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.018), transparent 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 82vh);
}

.masthead {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(920px, 100%);
  min-height: 72px;
  margin: 0 auto 14px;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  width: clamp(228px, 25vw, 286px);
}

.brand-wordmark {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    brightness(0)
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  opacity: 0.94;
}

.submission {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(28, 26, 23, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.submission::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(35, 33, 30, 0.94);
  z-index: 0;
}

.submission > section,
.submission > footer {
  position: relative;
  z-index: 1;
}

.submission-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow,
.meta-grid span,
.slot-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.submission h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.submission-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.head-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.meta-grid label {
  display: grid;
  gap: 7px;
}

.meta-grid label:last-child {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 248, 236, 0.1);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 248, 236, 0.035);
  outline: none;
}

input {
  height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 74px;
  padding: 10px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(223, 208, 138, 0.44);
  box-shadow: 0 0 0 2px rgba(223, 208, 138, 0.08);
}

.drop-zone {
  display: grid;
  min-height: 190px;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--slot-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.012)),
    var(--card);
  cursor: pointer;
  text-align: center;
}

.drop-zone input {
  display: none;
}

.drop-zone strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 28px;
  line-height: 1.05;
}

.drop-zone small {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.drop-zone.has-file,
.drop-zone.is-dragging {
  border-color: rgba(223, 208, 138, 0.36);
}

.queue {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}

.queue-head,
.submit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.queue h2 {
  margin: 0;
  font-size: 18px;
}

#queue-count,
#submit-status {
  color: var(--muted);
  font-size: 13px;
}

#queue-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#queue-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--slot-border);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 248, 236, 0.025);
  font-size: 13px;
}

#queue-list strong {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.submit-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}

#submit-button {
  min-width: 148px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(223, 208, 138, 0.3);
  border-radius: 999px;
  color: #171511;
  background: var(--accent-progress);
  font-weight: 700;
}

#submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 760px) {
  .shell {
    padding: 18px 12px;
  }

  .submission {
    padding: 18px;
  }

  .submission-head,
  .submit-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .head-meta {
    justify-content: flex-start;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}
