:root {
  font-family: Helvetica, Arial, sans-serif;
  color: #39343f;
  background: #f6f5f2;
  font-size: 15px;
  line-height: 1.65;
  --accent: #766286;
  --muted: #756a7e;
  --border: #e4dfe8;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-wrap: anywhere;
}
a {
  color: #6a5680;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #c3b2df66;
  border-radius: 9px;
  background: #425bd7;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  background: #354cc1;
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.quiet {
  background: #ffffff;
  color: #6b597b;
  border-color: #d5cbdc;
}
.quiet:hover {
  background: #f2edf6;
}
.danger {
  background: #f3e6ec;
  color: #684858;
  border-color: #d6bdc9;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #b3a1ce;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  padding: 10px;
  background: #39343f;
  color: #f6f5f2;
  z-index: 60;
}
.skip:focus {
  top: 10px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 15px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid #e4dfe8;
  background: #ffffffed;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.brand {
  display: block;
  width: 218px;
  max-width: 100%;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  object-position: left;
}
.brand-icon {
  color: #776383;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav a {
  font-size: 13px;
  font-weight: 400;
  color: #72637e;
  text-decoration: none;
  padding: 8px 0;
}
nav a:hover,
nav a[aria-current="page"] {
  color: #425bd7;
}
nav button {
  font-size: 13px;
}
main {
  max-width: 1240px;
  margin: 30px auto 65px;
  padding: 0 28px;
  min-height: 60vh;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 700;
}
h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  max-width: 850px;
  margin: 14px 0 23px;
  font-style: normal;
}
h2 {
  font-size: 27px;
  margin-top: 0;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  margin: 12px 0;
}
p {
  margin: 12px 0;
}
.muted,
.hint {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6988;
}
.hero {
  background: #ece9e3;
  padding: clamp(25px, 4vw, 46px);
  border: 1px solid #e4dfe8;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: none;
}
.hero p {
  max-width: 720px;
  color: #7d6e88;
}
.hero h1 {
  font-style: normal;
  text-shadow: none;
}
.hero-bottom {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid #e4dfe8;
}
.hero-bottom button[data-action="enter"] {
  background: #c3b2df;
  color: #ffffff;
  box-shadow: none;
  min-width: 160px;
}
.hero-bottom .hint {
  font-size: 10px;
  letter-spacing: 0.07em;
}
.prize {
  font-size: 19px;
  font-weight: 600;
  max-width: 480px;
  color: #5c4b68;
}
.countdown {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #6a587b;
}
.pill,
.badge {
  display: inline-block;
  background: #c3b2df12;
  color: #c3b2df;
  border: 1px solid #c3b2df25;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.badge {
  background: #b1a1c21a;
  color: #776083;
  border-color: #b1a1c23b;
}
.status {
  background: #99b9ab13;
  color: #527861;
  border-color: #99b9ab33;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.section {
  margin: 35px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  gap: 21px;
}
.card,
.panel {
  background: #ffffff;
  border: 1px solid #e4dfe8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}
.card {
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.card:hover {
  border-color: #c3b2df55;
  transform: translateY(-2px);
}
.panel {
  padding: 25px;
  margin: 20px 0;
}
.card-body {
  padding: 18px;
}
.card img.art {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #eeebf2;
  display: block;
}
.card .meta {
  font-size: 11px;
  color: #756a7e;
}
.card .actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.card .actions button {
  font-size: 12px;
  min-height: 42px;
  flex: 1;
  padding: 8px 10px;
}
.card a.title {
  text-decoration: none;
  color: #39343f;
}
.sponsor {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 13px;
}
.sponsor img {
  height: 42px;
  max-width: 110px;
  object-fit: contain;
  background: #f5f2f8;
  padding: 4px;
  border-radius: 6px;
}
.hero .sponsor {
  border-top: 1px solid #e4dfe8;
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 27px;
  align-items: start;
}
.entry-art {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #eeeaf1;
  border-radius: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 28px 0 21px;
}
.toolbar h2 {
  margin: 0;
}
.toolbar select {
  max-width: 220px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 17px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d5cbdc;
  padding: 12px;
  border-radius: 8px;
  background: #fcfaff;
  color: #39343f;
  min-height: 46px;
  font-size: 14px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  accent-color: #b9a7d0;
}
input[type="color"] {
  padding: 4px;
}
input[type="file"] {
  font-size: 12px;
  max-width: 100%;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 450;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full {
  grid-column: 1/-1;
}
form > button,
form > .row {
  margin-top: 22px;
}
.hint {
  font-size: 11px;
}
.rules {
  white-space: pre-wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}
.metric {
  padding: 20px;
  background: #f1edf4;
  border: 1px solid #e7e1eb;
  border-radius: 10px;
  font-size: 12px;
  color: #766581;
}
.metric strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  color: #39343f;
  margin-bottom: 5px;
}
.metric:first-child {
  background: #eae4ef;
  border-color: #a58bb050;
}
.metric:first-child strong {
  color: #736080;
}
.draft {
  white-space: pre-wrap;
  background: #fcfaff;
  padding: 20px;
  border-radius: 8px;
  border-left: 2px solid #a58bb0;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  background: #ffffff;
  border: 1px dashed #b3a0c346;
  border-radius: 12px;
  color: #7c6d86;
}
footer {
  text-align: center;
  color: #7e7089;
  padding: 30px;
  border-top: 1px solid #e4dfe8;
  background: #f6f5f2;
  font-size: 12px;
}
footer strong {
  display: inline-block;
  color: #73617e;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
footer a {
  display: inline-block;
  padding: 8px 3px;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #ffffff;
  color: #39343f;
  border: 1px solid #806d94;
  padding: 14px 22px;
  border-radius: 10px;
  max-width: min(90vw, 700px);
  box-shadow: 0 8px 30px #0003;
  font-size: 13px;
}
#notice:empty {
  display: none;
}
dialog {
  border: 1px solid #63506f;
  border-radius: 14px;
  padding: 29px;
  max-width: 640px;
  width: calc(100% - 30px);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  color: #39343f;
  box-shadow: 0 20px 80px #0007;
}
dialog::backdrop {
  background: #100c18bb;
  backdrop-filter: blur(3px);
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: #f5f0f8;
  color: #756281;
  border: 1px solid #dcd2e3;
  font-size: 22px;
  padding: 0;
  width: 36px;
  min-height: 36px;
  box-shadow: none;
}
dialog h2 {
  padding-right: 26px;
  font-size: 24px;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 12px;
}
dd {
  margin: 0;
  font-weight: 600;
}
details {
  margin: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  color: #6c5a7d;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e4dfe8;
}
.table-wrap {
  overflow: auto;
}
.profile-head {
  border-top: 3px solid var(--accent);
}
.winner {
  border: 1px solid #af96c368;
  box-shadow: none;
}
.two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no-wrap {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 12px 19px;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .brand {
    width: 185px;
  }
  .brand img {
    max-height: 52px;
  }
  nav {
    width: 100%;
    gap: 17px;
    justify-content: flex-start;
  }
  nav a {
    font-size: 11px;
  }
  nav button {
    font-size: 11px;
    min-height: 38px;
    padding: 8px 12px;
    margin-left: auto;
  }
  main {
    padding: 0 19px;
    margin-top: 22px;
  }
  .split,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    border-radius: 12px;
  }
  .hero-bottom {
    align-items: flex-start;
    gap: 20px;
  }
  .hero-bottom > div {
    width: 100%;
  }
  .hero-bottom button[data-action="enter"] {
    width: 100%;
  }
  .panel {
    padding: 20px;
  }
  .grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
  }
  .card img.art {
    height: auto;
    aspect-ratio: 1.2;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 24px;
  }
  dialog {
    padding: 25px 20px;
  }
  .toolbar label {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar select {
    max-width: 190px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 23px;
  }
  .prize {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .card:hover,
  button:hover,
  .button:hover {
    transform: none;
  }
}
.directory-header {
  padding: 20px 0 30px;
  border-bottom: 1px solid #e4dfe8;
  margin-bottom: 28px;
}
.directory-header h1 {
  margin-bottom: 18px;
}
.directory-header > p {
  color: #b5acbf;
  max-width: 670px;
  font-size: 15px;
  line-height: 1.8;
}
.directory-header .row {
  justify-content: space-between;
  gap: 18px;
  margin-top: 27px;
  font-size: 12px;
}
.challenge-directory {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: stretch;
}
.challenge-directory > .panel {
  margin: 0;
}
.challenge-directory h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.challenge-directory .button {
  margin-top: 18px;
}
.challenge-directory .prize {
  font-size: 17px;
  font-weight: 400;
}
.challenge-directory .sponsor {
  margin-top: 20px;
  border-top: 1px solid #e4dfe8;
}
.challenge-directory p {
  font-size: 14px;
  color: #766581;
}
