/* Judges Feedback homepage brand and layout. */
.homepage {
  --ink: #32183b;
  --pink: #bf356c;
  --purple: #6c357c;
  --muted: #675570;
  --line: #e6d8e9;
  background: linear-gradient(125deg, #fffaf5, #f8f2fa 55%, #f7edf3);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.homepage a { color: inherit; }
.homepage button:focus-visible,
.homepage a:focus-visible,
.homepage input:focus-visible,
.homepage select:focus-visible { outline: 3px solid #885d9a; outline-offset: 4px; }
.homepage main { max-width: 1440px; margin-inline: auto; }
.homepage > header { display: block; padding: 0; background: #fffaff; }
.homepage .wrap { width: min(91%, 1200px); margin-inline: auto; }
.homepage .nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.homepage .brand { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 27px; font-weight: 800; letter-spacing: -1.1px; white-space: nowrap; }
.homepage .brand em { color: var(--pink); }
.homepage .brand-mark { display: block; width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.homepage .navlinks { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 28px); color: var(--ink); font-size: 14px; font-weight: 700; }
.homepage .navlinks > a { display: inline-flex; }
.homepage .navlinks a:hover { color: var(--pink); }
.homepage .account-nav { min-height: 40px; padding: 8px 19px; border: 1.5px solid #cba8d4; border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; }
.homepage .account-nav:hover { background: #f5edf7; color: var(--ink); }
.homepage .btn,
.homepage .small-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 11px 22px; background: linear-gradient(#c13c70, #a52f60); color: #fff; font-weight: 700; box-shadow: 0 3px 7px #68264c20; cursor: pointer; white-space: nowrap; }
.homepage .btn:hover,
.homepage .small-btn:hover { filter: brightness(1.06); }
.homepage .btn.outline,
.homepage .small-btn { border: 1.5px solid #cba8d4; background: #fffaff; color: var(--ink); box-shadow: none; }
.homepage .btn:disabled,
.homepage .small-btn:disabled { cursor: not-allowed; opacity: .55; }

.homepage .hero { position: relative; min-height: 360px; overflow: hidden; padding: 0; background: linear-gradient(110deg, #fcf8f5 26%, #f1e8f5 51%, #54216f 78%, #32183b); }
.homepage .hero-copy { position: relative; z-index: 1; width: 62%; padding: 47px 0 48px max(4.5%, calc((100% - 1200px) / 2)); }
.homepage .hero h1 { max-width: 760px; color: var(--ink); font-size: clamp(38px, 4.5vw, 58px); line-height: 1.04; letter-spacing: -1.8px; }
.homepage .hero h1 em { color: var(--pink); }
.homepage .hero-copy > p { max-width: 580px; margin: 18px 0 22px; color: var(--ink); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.35; }
.homepage .hero > img { position: absolute; top: 0; right: max(-5%, calc((100% - 1200px) / 2 - 60px)); z-index: 0; width: 49%; height: 100%; object-fit: cover; object-position: right center; mask-image: linear-gradient(to right, transparent, #000 12%); }
.homepage .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.homepage .actions .btn { min-height: 48px; padding: 12px 25px; font-size: 16px; }

.homepage .workspace { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; margin: -12px auto 22px; padding: 0; width: min(94%, 1240px); }
.homepage .panel { min-width: 0; padding: 24px; border: 3px solid #fff9ff; border-radius: 29px; outline: 0; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 18px #a345c326; }
.homepage .panel h2 { color: var(--ink); font-size: clamp(20px, 2vw, 27px); font-weight: 800; letter-spacing: -.8px; line-height: 1.15; }
.homepage .upload > p { margin: 8px 0 15px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.homepage .tile { display: inline-grid; place-items: center; width: 37px; height: 37px; margin-right: 6px; border-radius: 10px; background: linear-gradient(#bd6cab, #764386); color: #fff; vertical-align: middle; }
.homepage .drop { position: relative; display: flex; min-height: 240px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 22px 15px; border: 1.5px dashed #a67eae; border-radius: 21px; background: #f6eff8; color: var(--ink); cursor: pointer; text-align: center; }
.homepage .drop.is-dragging { border-color: var(--pink); background: #f1e3f1; }
.homepage .drop:focus-within { outline: 3px solid #885d9a; outline-offset: 4px; }
.homepage .drop input { position: absolute; left: 50%; bottom: 14px; width: 1px; height: 1px; opacity: 0; }
.homepage .cloud { color: #9656a6; font-size: 58px; line-height: 1; }
.homepage .drop strong { font-size: 17px; }
.homepage .drop small,
.homepage .checks { color: var(--muted); }
.homepage .drop .btn { min-width: 52%; margin: 5px 0 0; padding: 11px 20px; }
.homepage .drop .btn.outline { border: 1.5px solid #cba8d4; }
.homepage .checks { margin: 12px 0; font-size: 12px; }
.homepage .privacy-note { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.homepage .tip { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 15px; background: #f8e8ee; color: var(--ink); font-size: 13px; line-height: 1.4; }
.homepage .tip > span { flex: 0 0 auto; font-size: 28px; }
.homepage .tip.yellow { background: #fff1ce; font-size: 12px; }
.homepage .review-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.homepage .review-options .btn { min-height: 48px; padding: 10px 12px; white-space: normal; text-align: center; }
.homepage .form-status { color: var(--muted); font-size: 12px; }
.homepage .form-status[data-state="error"] { color: #a32242; }

.homepage .heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.homepage .heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.homepage .pill { border-color: #a7dda7; border-radius: 999px; background: #def6da; color: #28662f; font-size: 11px; }
.homepage .results { display: grid; grid-template-columns: minmax(110px, 25%) minmax(130px, 28%) minmax(0, 1fr); align-items: center; gap: 10px; margin: 8px 0 13px; }
.homepage .results > img { display: block; width: 100%; min-width: 0; aspect-ratio: 171 / 193; border-radius: 17px; box-shadow: 0 5px 12px #40124b30; object-fit: cover; }
.homepage .score { min-width: 0; padding: 8px 7px; color: #66054e; font-size: 13px; text-align: center; }
.homepage .score > strong { font-size: 14px; }
.homepage .score > div { margin: 4px 0; white-space: nowrap; }
.homepage .score b { color: #66054e; font-size: clamp(42px, 5vw, 68px); letter-spacing: -3px; }
.homepage .banner { display: block; min-height: 0; margin: 8px 0 0; padding: 7px 8px; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.homepage .metrics { display: grid; min-width: 0; gap: 6px; padding: 1px 13px; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 11px; }
.homepage .metrics .metric { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 3px; margin: 0; font-weight: 700; }
.homepage .metrics .metric > span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.homepage .metrics .metric > b { float: none; white-space: nowrap; }
.homepage .metrics .metric > i { grid-column: 1 / -1; display: block; height: 6px; margin: 0; overflow: hidden; border-radius: 9px; background: #e7e1e9; }
.homepage .metrics .metric > i > span { display: block; width: var(--score-value, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1aa64b, #73cf4c); }
.homepage .score-method { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.homepage .critique-result { padding: 13px 1% 5px; border-top: 1px solid var(--line); }
.homepage .critique-result > h3 { margin: 0 0 7px; color: #65044e; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.5px; }
.homepage .result-summary { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.homepage .result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 12px 0; }
.homepage .result-columns h4 { margin: 0 0 6px; color: var(--ink); font-size: 13px; }
.homepage .result-columns ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.homepage .result-columns li { margin-bottom: 5px; }
.homepage .next-shot { margin: 12px 0; background: #fce3f1; }
.homepage .next-shot h3 { margin: 3px 0 4px; font-size: 15px; }
.homepage .next-shot p { margin: 0; font-size: 12px; }
.homepage .model-note { color: var(--muted); font-size: 11px; }

.homepage .steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 4px auto 22px; padding: 20px 4.5% 25px; border-bottom: 1px solid var(--line); }
.homepage .steps > h2 { display: flex; flex-basis: 100%; align-items: center; justify-content: center; gap: 24px; margin: 0 0 6px; color: var(--ink); font-size: 29px; letter-spacing: -1px; text-align: center; }
.homepage .steps > h2::before,
.homepage .steps > h2::after { width: 13%; height: 1px; background: #dec9de; content: ""; }
.homepage .steps > div { display: flex; max-width: 340px; min-height: 78px; flex: 1 1 250px; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 19px; background: #ffffffbd; box-shadow: 0 3px 8px #a345c319; }
.homepage .steps > div > div { display: block; min-width: 0; padding: 0; background: transparent; box-shadow: none; }
.homepage .bubble { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(#d8568c, #883c7c); color: #fff; font-size: 20px; font-weight: 700; }
.homepage .how-icon { color: var(--pink); font-size: 30px; }
.homepage .steps h3 { color: var(--ink); font-size: 18px; letter-spacing: -.5px; }
.homepage .steps p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.homepage .steps > .arrow { flex: 0 0 auto; color: #bd4f87; font-size: 25px; font-style: normal; }

.homepage .section { max-width: 1200px; margin-inline: auto; padding: 22px 0 8px; }
.homepage .section > .heading { align-items: end; margin-bottom: 15px; }
.homepage .section > .heading p { margin-top: 5px; color: var(--muted); }
.homepage .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.homepage .contest { min-width: 0; overflow: hidden; border: 2px solid #f3ddf0; border-radius: 17px; background: #fffaff; box-shadow: 0 3px 8px #a345c319; }
.homepage .contest-main { display: flex; min-height: 170px; position: relative; align-items: stretch; background: linear-gradient(120deg, #fff8fb, #ffe3ee); }
.homepage .contest:nth-child(2) .contest-main { background: linear-gradient(120deg, #fff8ff, #f0dcff); }
.homepage .contest:nth-child(3) .contest-main { background: linear-gradient(120deg, #fff8e9, #fff0cb); }
.homepage .contest-main > img { width: 38%; min-width: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; }
.homepage .contest-copy { min-width: 0; flex: 1; padding: 13px 9px; }
.homepage .contest-copy h3 { padding-right: 40px; color: #df165c; font-family: Georgia, serif; font-size: clamp(16px, 1.8vw, 25px); font-style: italic; line-height: 1; }
.homepage .contest:nth-child(2) .contest-copy h3 { color: #7d22c8; }
.homepage .contest:nth-child(3) .contest-copy h3 { color: #ef8500; }
.homepage .contest-copy p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.homepage .contestant-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; max-height: 80px; margin: 9px 0 2px; overflow-y: auto; }
.homepage .contestant-slot { position: relative; display: grid; min-width: 0; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid #e9cde0; border-radius: 5px; background: #fffdfa; color: var(--ink); font-size: 9px; }
.homepage .contestant-slot.is-filled { background: #fceafa; }
.homepage .contestant-slot .slot-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(1px); transform: scale(1.04); }
.homepage .contestant-slot .slot-number { position: absolute; z-index: 1; right: 3px; bottom: 2px; min-width: 13px; padding: 1px 4px; border-radius: 8px; background: #fffdfae8; font-size: 9px; text-align: center; }
.homepage .contestant-slot.is-next button { width: 100%; height: 100%; min-height: 0; padding: 0; border: 1px dashed #bd8de2; border-radius: inherit; background: #faf5ff; color: var(--ink); cursor: pointer; font-size: 16px; font-weight: 900; }
.homepage .crown-badge { position: absolute; top: 2px; right: 3px; z-index: 2; min-width: 44px; padding: 8px 5px; border: 2px dashed #ed9d19; border-radius: 50%; background: #ffd358; color: #873b09; font-size: 10px; font-weight: 700; text-align: center; }
.homepage .contest-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 11px; color: var(--ink); font-size: 11px; font-weight: 700; }
.homepage .contest-bottom .btn { padding: 8px 12px; border-radius: 9px; font-size: 11px; }
.homepage .contest-bottom span:last-child { text-align: right; }
.homepage .loading-state,
.homepage .empty-state { grid-column: 1 / -1; display: flex; min-height: 98px; align-items: center; justify-content: center; gap: 11px; padding: 16px; border: 1px dashed #d4b5cc; border-radius: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.homepage .loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

.homepage .prize { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(94%, 1240px); margin: 8px auto 0; padding: 12px 30px; overflow: hidden; border-radius: 34px; background: linear-gradient(105deg, #8b4e92, #54216f 55%, #9d4a88); color: #fff; text-align: left; }
.homepage .prize img { width: 15%; max-height: 90px; border-radius: 8px; object-fit: contain; }
.homepage .prize h2 { flex: 0 0 auto; color: #fff; font-size: clamp(21px, 2.3vw, 29px); letter-spacing: -.8px; white-space: nowrap; }
.homepage .prize p { max-width: 390px; flex: 1; color: #fff; font-size: 14px; line-height: 1.45; }

.homepage > footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 25px 0; background: transparent; color: var(--ink); font-size: 11px; }
.homepage > footer .brand { color: var(--ink); font-size: 16px; letter-spacing: -.5px; }
.homepage > footer .brand em { color: var(--pink); }
.homepage > footer span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.homepage > footer small,
.homepage > footer .footer-admin-link { color: var(--muted); font-size: 10px; }
.homepage .feature-settings-error { border-color: #edbedf; border-radius: 10px; background: #fff0f7; color: #8d214d; }

.homepage .dialog-shell { border: 2px solid #f2dff2; border-radius: 23px; background: #fffaff; box-shadow: 0 14px 40px #40124b30; }
.homepage .dialog-shell .eyebrow { color: var(--pink); }
.homepage .dialog-shell h2 { color: var(--ink); }
.homepage .dialog-shell select,
.homepage .dialog-shell input[type="text"],
.homepage .dialog-shell input[type="password"] { border-color: #d9a9e1; border-radius: 10px; background: #fff; }
.homepage .dialog-close { border-color: #eadcf3; color: var(--ink); }
.homepage .feedback-wait-dialog { border-color: var(--purple); background: #fffaff; color: var(--ink); }

@media (min-width: 1200px) {
  .homepage .hero { min-height: 385px; }
  .homepage .panel { padding: 27px; }
  .homepage .drop { min-height: 250px; }
}

@media (max-width: 950px) {
  .homepage .nav { flex-wrap: wrap; justify-content: center; padding: 12px 0; }
  .homepage .navlinks { justify-content: center; gap: 12px; }
  .homepage .workspace { grid-template-columns: 1fr; width: min(91%, 760px); margin-top: 15px; }
  .homepage .results { grid-template-columns: minmax(120px, 24%) minmax(160px, 28%) minmax(0, 1fr); }
  .homepage .steps { padding-right: 0; padding-left: 0; }
  .homepage .section { width: min(91%, 760px); }
  .homepage .cards { grid-template-columns: 1fr; }
  .homepage .contest-main { min-height: 0; }
  .homepage .contest-main > img { max-height: 190px; }
  .homepage > footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}

@media (max-width: 700px) {
  .homepage .wrap { width: calc(100% - 28px); }
  .homepage .nav { justify-content: space-between; gap: 10px; }
.homepage .brand { font-size: 22px; }
.homepage .brand-mark { width: 30px; height: 30px; }
  .homepage .navlinks { flex: 1 0 100%; justify-content: center; gap: 9px 16px; font-size: 12px; }
  .homepage .account-nav { min-height: 34px; padding: 6px 13px; font-size: 12px; }
  .homepage .hero { min-height: 0; }
  .homepage .hero-copy { width: 100%; padding: 30px 18px 25px; }
  .homepage .hero h1 { font-size: clamp(36px, 9vw, 52px); letter-spacing: -1.3px; }
  .homepage .hero-copy > p { max-width: 440px; font-size: 17px; }
.homepage .hero > img { position: relative; right: auto; display: block; width: 100%; height: 220px; max-height: none; object-fit: cover; object-position: right center; mask-image: linear-gradient(to bottom, transparent, #000 10%); }
  .homepage .workspace { width: calc(100% - 24px); margin: 12px auto 18px; gap: 14px; }
  .homepage .panel { padding: 17px; border-radius: 23px; }
  .homepage .panel h2 { font-size: 23px; }
  .homepage .drop { min-height: 225px; }
  .homepage .results { grid-template-columns: minmax(105px, 35%) minmax(0, 1fr); gap: 10px 12px; }
  .homepage .results > img { max-width: 190px; }
  .homepage .score { text-align: center; }
  .homepage .score b { font-size: 56px; }
  .homepage .metrics { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 0 0; border-top: 1px solid var(--line); border-right: 0; border-left: 0; }
  .homepage .result-columns { grid-template-columns: 1fr; }
  .homepage .steps { gap: 8px; padding: 18px 0 21px; }
  .homepage .steps > h2 { gap: 12px; font-size: 24px; }
  .homepage .steps > div { min-height: 72px; flex-basis: 100%; }
  .homepage .steps > .arrow { display: none; }
  .homepage .prize { flex-wrap: wrap; justify-content: center; gap: 10px; width: calc(100% - 24px); padding: 17px; border-radius: 24px; text-align: center; }
  .homepage .prize img { width: 22%; max-height: 70px; }
  .homepage .prize h2 { flex: 1 1 55%; font-size: 22px; white-space: normal; }
  .homepage .prize p { display: none; }
  .homepage > footer { width: calc(100% - 28px); flex-direction: column; padding: 20px 0; }
  .homepage > footer span { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage *,
  .homepage *::before,
  .homepage *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
