.competition-page {
  --paper: #faf7f1;
  --ink: #291c32;
  --plum: #553952;
  --muted: #655a66;
  --line: #d8cfd0;
  --pad: clamp(28px, 6vw, 112px);
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}
#competition *, #competition-signin * { box-sizing: border-box; }
#competition [hidden], #competition-signin [hidden] { display: none !important; }
#competition figure, #competition dl, #competition dd { margin: 0; }
#competition :is(h1, h1 *, .jewel-brief h2, .jewel-brief h2 *, .prize-list dd, .jewel-dates dd, .jewel-dates dd *),
#competition-signin :is(h2, h2 *) { font-family: var(--lumi-font-serif, Georgia, serif) !important; }
.jewel-hero { display: grid; grid-template-columns: 1fr 1fr; }
.jewel-intro {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: clamp(34px, 4.6vw, 82px) var(--pad) clamp(36px, 4vw, 68px);
  background: radial-gradient(ellipse at 85% 5%, #eee7f5, transparent 68%), var(--paper);
}
.jewel-eyebrow, .jewel-dates dt, .prize-list dt, .jewel-requirements dt {
  font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .14em; text-transform: uppercase;
}
.jewel-eyebrow { display: flex; align-items: center; gap: 13px; margin: 0; color: var(--plum); }
.jewel-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: currentColor; }
.jewel-invitation { padding: clamp(34px, 4.5vw, 76px) 0; }
#competition h1, #competition .jewel-brief h2 {
  font-weight: 400; line-height: .96; letter-spacing: -.063em; margin: 0;
}
#competition h1 { font-size: clamp(62px, 7.6vw, 134px); }
#competition em { color: var(--plum); font-weight: 400; }
.jewel-lead, .jewel-description { max-width: 35ch; margin: 25px 0 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 21px); line-height: 1.6; }
.jewel-actions { display: flex; flex-wrap: wrap; gap: 15px 24px; align-items: center; margin-top: 28px; scroll-margin-top: 125px; }
.jewel-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 47px; padding: 12px 23px; border: 1px solid var(--ink); border-radius: 30px;
  background: var(--ink); color: white; text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer;
}
.jewel-button:hover { background: var(--plum); border-color: var(--plum); }
.jewel-button:disabled { cursor: wait; opacity: .65; }
.jewel-text-link, .jewel-account button, .jewel-edit, .jewel-requirements a {
  color: var(--plum); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #9f8f9c;
}
.jewel-text-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; font-size: 14px; }
.jewel-account, .jewel-notice { font-size: 13px; margin: 12px 0 0; color: var(--muted); }
.jewel-notice:empty, #competition-signin [data-feedback]:empty { display: none; }
.jewel-account button, .jewel-edit { border: 0; background: none; padding: 4px; font-size: inherit; cursor: pointer; }
#competition .jewel-dates { display: flex; flex-wrap: wrap; gap: 14px clamp(16px, 1.7vw, 28px); width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.jewel-dates dt { color: var(--muted); }
#competition .jewel-dates dd { margin-top: 6px; font-size: clamp(19px, 1.75vw, 30px); line-height: 1.2; letter-spacing: -.04em; }
.jewel-workshop { position: relative; min-height: clamp(540px, 45vw, 800px); overflow: hidden; background: #998786; }
.jewel-workshop img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.jewel-prizes { display: grid; grid-template-columns: 1fr 3fr; align-items: center; padding: clamp(35px, 4.25vw, 78px) var(--pad); background: #342536; color: #faf3eb; }
.jewel-prizes .jewel-eyebrow { color: #e5cfd9; }
.prize-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prize-list > div { padding: 0 clamp(10px, 2.7vw, 55px); border-left: 1px solid #716070; }
.prize-list dt { color: #e5cfd9; }
#competition .prize-list dd { margin-top: 7px; font-size: clamp(34px, 4.4vw, 83px); line-height: 1; font-weight: 400; letter-spacing: -.065em; font-variant-numeric: lining-nums; }
#competition .jewel-brief { max-width: 1660px; margin: 0 auto; padding: clamp(58px, 7.5vw, 140px) var(--pad); display: grid; grid-template-columns: 1fr .98fr; align-items: center; gap: clamp(32px, 8vw, 155px); scroll-margin-top: 74px; }
.jewel-portrait { background: #e6e0f1; }
.jewel-portrait img { display: block; width: 100%; height: auto; }
#competition .jewel-brief h2 { margin-top: 25px; font-size: clamp(58px, 6.7vw, 106px); }
.jewel-description { max-width: 41ch; }
#competition .jewel-requirements { margin-top: 24px; }
.jewel-requirements > div { display: grid; grid-template-columns: minmax(86px, .75fr) 2fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 18px 0; }
.jewel-requirements dd { font-size: 15px; line-height: 1.55; }
#competition-signin { box-sizing: border-box; color: var(--ink); background: var(--paper); padding: clamp(26px, 5vw, 42px); width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 90px #25132d33; }
#competition-signin::backdrop { background: rgba(28, 19, 35, .56); }
#competition-signin h2 { font-size: clamp(31px, 4vw, 44px); line-height: 1.04; letter-spacing: -.04em; font-weight: 400; margin: 22px 0; }
.jewel-close { position: absolute; right: 9px; top: 7px; width: 42px; height: 42px; border: 0; background: none; color: var(--ink); font-size: 26px; cursor: pointer; }
#competition-signin label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
#competition-signin input { width: 100%; min-height: 48px; border: 1px solid #aa9ca6; border-radius: 5px; padding: 10px 13px; color: var(--ink); background: #fff; font-size: 16px; }
#competition-signin form p, #competition-signin [data-feedback] { margin: 13px 0 19px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#competition-signin [data-feedback] { margin-bottom: 0; color: #743743; }
#competition-signin .jewel-edit { display: block; margin-top: 12px; padding: 7px 0; font-size: 13px; }
.competition-page :is(a, button, input):focus-visible { outline: 3px solid #8e67a2; outline-offset: 4px; }
@media (max-width: 780px) {
  .jewel-hero { grid-template-columns: 1fr; }
  .jewel-intro { padding: 36px var(--pad) 30px; }
  .jewel-invitation { padding: 28px 0; }
  #competition h1 { font-size: clamp(65px, 12.3vw, 98px); }
  .jewel-lead { margin-top: 17px; max-width: 41ch; }
  .jewel-workshop { min-height: 0; height: clamp(350px, 86vw, 580px); }
  .jewel-workshop img { object-position: 50% 42%; }
  .jewel-prizes { grid-template-columns: 1fr; gap: 22px; }
  .prize-list > div { padding: 0 clamp(8px, 2.3vw, 20px); }
  .prize-list > div:first-child { border: 0; padding-left: 0; }
  .prize-list dt { font-size: 10px; letter-spacing: .08em; }
  #competition .prize-list dd { font-size: clamp(29px, 7.7vw, 56px); }
  #competition .jewel-brief { grid-template-columns: 1fr; gap: 34px; }
  .jewel-brief-copy { grid-row: 1; }
  .jewel-portrait { max-width: 540px; }
}
@media (max-width: 360px) {
  .competition-page { --pad: 18px; }
  #competition h1 { font-size: 58px; }
  .jewel-actions { gap: 8px 14px; }
}

.jewel-terms-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
dialog.jewel-terms {
  width: min(620px, calc(100% - 32px));
  max-height: min(82vh, 720px);
  max-height: min(82dvh, 720px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 90px #27172f33;
}
.jewel-terms::backdrop { background: rgb(29 19 35 / 58%); }
.jewel-terms-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
#competition .jewel-terms h2, #competition .jewel-terms h2 * { font-family: var(--lumi-font-serif, Georgia, serif) !important; }
.jewel-terms h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.jewel-terms-close { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--plum); cursor: pointer; font-size: 14px; }
.jewel-terms-body { padding: 24px clamp(18px, 4vw, 32px) 30px; }
.jewel-terms-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.jewel-terms-body p + h3 { margin-top: 24px; }
.jewel-terms-body p { margin: 0; font-size: 15px; line-height: 1.65; }
.jewel-terms-body p + p { margin-top: 12px; }

.jewel-consent-row { display: flex; flex-wrap: wrap; gap: 0 .32em; align-items: center; margin-top: 8px; color: var(--muted); font-size: 14px; }
.jewel-consent-row input { width: 18px; height: 18px; margin: 0 5px 0 0; accent-color: var(--plum); }
.jewel-consent-row button { padding: 6px 0; font: inherit; color: var(--plum); }
#competition [data-register]:disabled { cursor: not-allowed; opacity: .55; }
