.contest-drawings {
  --contest-bg: #f7f3ea;
  --contest-card: #fffdf8;
  --contest-ink: #1f2a24;
  --contest-accent: #2f6f5e;
  --contest-accent-2: #c47b3a;
  --contest-line: #d9d0bf;
  max-width: 760px;
  margin: 0 auto;
  color: var(--contest-ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.contest-card,
.contest-parade-promo {
  background: linear-gradient(180deg, var(--contest-card), #f4efe4);
  border: 1px solid var(--contest-line);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(31, 42, 36, 0.06);
}

.contest-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contest-step {
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #ebe4d6;
  color: #5a5348;
}

.contest-step.is-active,
.contest-step.is-done {
  background: var(--contest-accent);
  color: #fff;
}

.contest-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contest-tab {
  border: 1px solid var(--contest-line);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}

.contest-tab.is-active {
  background: var(--contest-accent);
  border-color: var(--contest-accent);
  color: #fff;
}

.contest-tab-panel {
  display: none;
}

.contest-tab-panel.is-active {
  display: block;
}

.contest-form label {
  display: block;
  margin-bottom: 0.9rem;
}

.contest-form label > span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contest-form input[type="text"],
.contest-form input[type="email"],
.contest-form input[type="password"],
.contest-form input[type="file"],
.contest-form textarea,
.contest-form select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--contest-line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: #fff;
}

.contest-checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.contest-checkbox input {
  width: auto;
}

.contest-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--contest-accent);
  color: #fff;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
}

.contest-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.contest-btn-secondary {
  background: var(--contest-accent-2);
}

.contest-hint {
  color: #6b6458;
  font-size: 0.92rem;
}

.contest-alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.contest-alert-success {
  background: #e7f5ee;
  color: #1f5b40;
}

.contest-alert-error {
  background: #fdeceb;
  color: #8a2b24;
}

.contest-delivery {
  border: 1px dashed var(--contest-line);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.contest-delivery-fields {
  margin: 0.5rem 0 1rem 1.5rem;
}

.contest-entries {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contest-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--contest-line);
  border-radius: 12px;
  background: #fff;
}

.contest-entry-preview {
  position: relative;
  width: 96px;
  height: 96px;
}

.contest-entry-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.contest-entry-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #ebe4d6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.25rem;
}

.contest-entry-zoom {
  position: absolute;
  left: 108px;
  top: 0;
  z-index: 5;
  width: 280px;
  max-width: min(280px, 70vw);
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--contest-line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contest-entry-zoom img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.contest-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contest-entry-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.contest-entry-actions form {
  margin: 0;
}

.contest-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--contest-accent);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.contest-link-danger {
  color: #8a2b24;
}

.contest-logout {
  margin-top: 1.25rem;
}

.contest-parade-promo h3 {
  margin-top: 0;
}

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

  .contest-entry-zoom {
    left: 0;
    top: 104px;
  }
}
