/* Each finish wraps the original label and control. The whole face is a tap
   target, while hints and validation messages remain in the row below it. */
#participant-fields { scroll-margin-top: 16px; }
:where(.submission[data-field-style]) .field-face {
  --edge: #6a565f;
  --pad: 16px;
  --height: 64px;
  --caption-y: 8px;
  --ink: #e6d9df;
  --value-font: Manrope, sans-serif;
  position: relative; display: block; min-width: 0; isolation: isolate;
}
.submission[data-field-style] .field-face:focus-within { --edge: var(--accent); --ink: var(--active-caption, #fff1f6); }
.submission[data-field-style] .field-face:has([aria-invalid="true"]) { --edge: #ff91a9; --ink: #ffbdca; }
.submission[data-field-style] .field-face:has(:disabled) { opacity: .48; }
.submission[data-field-style] .submission-fields .field-caption {
  position: absolute; z-index: 1; pointer-events: none;
  inset-inline-start: var(--pad); top: var(--caption-y); color: var(--ink);
  font: 650 12px/1.2 Manrope, sans-serif;
}
.submission[data-field-style] .submission-fields .field-face > :is(input, select),
.submission[data-field-style] .submission-fields .field-face > :is(input, select):focus-visible {
  display: block; width: 100%; height: var(--height); min-height: 48px;
  margin: 0; padding: 21px var(--pad) 4px; box-sizing: border-box;
  background: transparent; color: #fff; caret-color: var(--accent);
  border: 0; border-radius: inherit; outline: 0; box-shadow: none;
  font: 550 16px/1.3 var(--value-font);
}
.submission[data-field-style] .field-face select { text-overflow: ellipsis; }
.submission[data-field-style] .submission-fields .field-face > select[name="phoneRegion"] { padding-inline-end: 4px; }
.submission[data-field-style] .field-face option { color: white; background: #141216; }
.submission[data-field-style] .field-face ::-webkit-date-and-time-value { text-align: start; }
.submission[data-field-style] .submission-phone .field-face { --pad: 11px; }
.field-face::before, .field-face::after { pointer-events: none; }

/* Let the finale lights recede into black behind the glass. */
.submission[data-field-style="lens"] { --glass: rgb(2 2 2 / .98); }
.submission[data-field-style="lens"]::before {
  background: linear-gradient(transparent, #0009 24svh),
    repeating-radial-gradient(ellipse at 112% 27%, transparent 0 104px, #aaa2 105px, transparent 107px 146px);
}
[data-field-style="lens"] .field-face {
  --pad: 22px; --caption-y: 10px; --edge: #535353;
  --ink: #d6d6d6; --active-caption: #f6f6f6;
  border: 1px solid transparent; border-radius: 30px;
  background:
    linear-gradient(173deg, #171717 0%, #0b0b0b 30%, #060606 55%, #0d0d0d 100%) padding-box,
    linear-gradient(158deg, #aaa 0%, #484848 19%, #303030 49%, var(--edge) 81%, #202020) border-box;
  box-shadow: inset 0 1px 5px #fff1, inset 0 -3px 4px #000a, 0 5px 10px #0006;
}
[data-field-style="lens"] .field-face::before {
  content: ""; position: absolute; top: 1px; left: 12%; right: 24%; height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff80 20%, #ffffff26 55%, transparent);
}
[data-field-style="lens"] .field-face:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 8px #ff247b30; }

.submission[data-field-style="lens"] .field-face option { background: #101010; }
.submission[data-field-style="lens"] .submission-fields .field-face input:-webkit-autofill {
  -webkit-text-fill-color: white;
  box-shadow: inset 0 0 0 1000px #0a0a0a;
}

/* Open corners and edge graticules echo the camera monitor. */
[data-field-style="focus"] .field-face {
  --caption-y: 1px; --pad: 12px; --height: 72px; --edge: #de739c;
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, #74616a 0 1px, transparent 1px 4px) right 3px top 7px / 26px 4px no-repeat,
    linear-gradient(100deg, #1d171a, #101011 60%) left bottom / 100% calc(100% - 19px) no-repeat;
}
[data-field-style="focus"] .field-caption { left: 0; }
[data-field-style="focus"] .field-face::before {
  content: ""; position: absolute; inset: 19px 0 0;
  background:
    linear-gradient(var(--edge),var(--edge)) left top, linear-gradient(var(--edge),var(--edge)) right top,
    linear-gradient(var(--edge),var(--edge)) left bottom, linear-gradient(var(--edge),var(--edge)) right bottom,
    linear-gradient(var(--edge),var(--edge)) left top, linear-gradient(var(--edge),var(--edge)) right top,
    linear-gradient(var(--edge),var(--edge)) left bottom, linear-gradient(var(--edge),var(--edge)) right bottom;
  background-size: 13px 2px, 13px 2px, 13px 2px, 13px 2px, 2px 9px, 2px 9px, 2px 9px, 2px 9px;
  background-repeat: no-repeat;
}

[data-field-style="focus"] .field-face:focus-within::before {
  background-size: 23px 2px, 23px 2px, 23px 2px, 23px 2px, 2px 15px, 2px 15px, 2px 15px, 2px 15px;
  filter: drop-shadow(0 0 3px #ff247b99);
}

/* Brushed-metal nameplate with an engraved tab and a bevelled lower corner. */
[data-field-style="titanium"] .field-face {
  --height: 70px; --caption-y: 7px; --ink: #1b1618;
  filter: drop-shadow(0 3px 3px #0008);
}
[data-field-style="titanium"] .field-face::before, [data-field-style="titanium"] .field-face::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
[data-field-style="titanium"] .field-face::before {
  inset: 0; background: linear-gradient(140deg, #afa2a5, #524c50 32%, #312f31 60%, var(--edge) 88%, #91898c);
}
[data-field-style="titanium"] .field-face::after {
  inset: 1px;
  background: repeating-linear-gradient(0deg,#fff0 0 2px,#ffffff05 2px 3px),
    linear-gradient(118deg, #39373a, #201e20 44%, #141414 75%, #2d2b2d);
}
.submission[data-field-style="titanium"] .submission-fields .field-caption {
  inset-inline-start: 10px; padding: 2px 11px 2px 7px; color: #1b1719;
  background: linear-gradient(100deg,#d9d2d3,#aaa2a5); font-weight: 800;
  clip-path: polygon(0 0,100% 0,calc(100% - 6px) 100%,0 100%);
}
[data-field-style="titanium"] .field-face:focus-within::before {
  background: linear-gradient(120deg, #ffe2ed, #e05789 25%, #704250 60%, #ff70a3);
}
[data-field-style="titanium"] .field-face:focus-within .field-caption {
  background: linear-gradient(100deg,#ffdce7,#ff85b0);
}

/* A measuring rail cuts through the black surface beneath the value. */
[data-field-style="scale"] .field-face {
  --height: 70px; --value-font: Menlo, Consolas, "Liberation Mono", monospace; --caption-y: 3px; --pad: 6px; --edge: #ef649a;
  border-radius: 0;
  background:
    linear-gradient(90deg,var(--edge),var(--edge)) left 1px bottom 0 / 3px 11px no-repeat,
    repeating-linear-gradient(90deg, #917984 0 1px, transparent 1px 24px) left bottom / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, #695860 0 1px, transparent 1px 6px) left bottom / 100% 3px no-repeat,
    linear-gradient(90deg, var(--edge), #67555e 28%, #493d43) left bottom / 100% 1px no-repeat,
    linear-gradient(0deg, #23191f55, transparent 65%);
}
[data-field-style="scale"] .field-face::after {
  content: ""; position: absolute; top: 9px; right: 3px; height: 1px; width: 22%;
  background: linear-gradient(90deg,transparent,#79636d);
}
.submission[data-field-style="scale"] .submission-fields .field-face > :is(input, select) {
  padding-bottom: 10px; font-variant-numeric: tabular-nums;
}
[data-field-style="scale"] .field-face:focus-within::before {
  content: ""; position: absolute; inset: auto 0 0; height: 2px;
  background: linear-gradient(90deg, #ffabc7, var(--accent) 45%, #e15887);
  box-shadow: 0 1px 5px #ff247b77;
}
[data-field-style="scale"] .field-face:focus-within::after { background: linear-gradient(90deg,transparent,var(--accent)); }

/* Perforated film edge and a dark emulsion window. */
[data-field-style="filmstrip"] .field-face {
  --pad: 25px; --caption-y: 9px; --height: 66px;
  border-radius: 5px; border: 1px solid #5b444d; border-left: 0;
  background: linear-gradient(90deg, #453238 13px, #796168 13px 14px, #191718 14px, #100e10 58%, #24171d);
  box-shadow: inset 0 1px #ffffff12, inset 0 -1px #000;
}
[data-field-style="filmstrip"] .field-face::before {
  content: ""; position: absolute; left: 4px; top: 5px; bottom: 5px; width: 6px;
  background: repeating-linear-gradient(#090809 0 5px, #80636d 5px 6px, transparent 6px 12px);
}
[data-field-style="filmstrip"] .field-face::after {
  content: ""; position: absolute; right: 6px; bottom: 6px; width: 8px; height: 8px;
  border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
}
.submission[data-field-style="filmstrip"] .submission-phone .field-face { --pad: 21px; }
[data-field-style="filmstrip"] .field-face:focus-within {
  border-color: #fa709f; box-shadow: inset 0 1px #ff99b94d, 0 0 8px #ff247b26;
}
[data-field-style="filmstrip"] .field-face:focus-within::before {
  background: repeating-linear-gradient(#ffacc8 0 4px, #b54c71 4px 6px, transparent 6px 12px);
}

@media (max-width: 410px) {
  .submission[data-field-style] .submission-phone { grid-template-columns: minmax(120px,.8fr) minmax(0,1.35fr); }
}
@media (forced-colors: active) {
  .submission[data-field-style] .field-face { border: 1px solid ButtonText; }
  .submission[data-field-style] .field-face:focus-within { outline: 2px solid Highlight; }
  .submission[data-field-style] .submission-fields .field-caption { color: CanvasText; background: Canvas; }
}
