@font-face {
  font-family: MarketSerif;
  src: local("Noto Serif CJK SC");
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #28271f;
  background: #f7f4eb;
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6d0c2;
  border-radius: 3px;
  background: #fffdf8;
  color: #28271f;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #ae3825;
  box-shadow: 0 0 0 3px #ae382512;
}
textarea {
  resize: vertical;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b84827;
  outline-offset: 4px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #a83926;
  flex-shrink: 0;
}
small {
  font-size: 0.8125rem;
  color: #746c5d;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-family: MarketSerif, "Noto Serif CJK SC", serif;
  font-weight: 800;
  line-height: 1.35;
}
h3 {
  font-size: 1.125rem;
}
button.text-button {
  padding: 5px 0;
  background: transparent;
  color: #5e5141;
  font-size: 0.875rem;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid #d6cebc;
  background: #faf7ee;
  position: relative;
  z-index: 1;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: MarketSerif, serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.wordmark small {
  display: block;
  font-family: sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.23em;
  margin-top: 4px;
  font-weight: 400;
}
.seal {
  background: #af3926;
  color: #fff6dc;
  padding: 4px 6px;
  font-family: MarketSerif, serif;
  font-size: 1.0625rem;
  line-height: 1.05;
  transform: rotate(-3deg);
  border: 3px double #eee1bd;
  letter-spacing: 0.06em;
}
.top-right {
  display: flex;
  gap: 35px;
  align-items: center;
}
.open-dot {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}
.open-dot:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b6844;
  margin-right: 9px;
}
.registration-layout {
  display: grid;
  grid-template-columns: 46% 54%;
  max-width: 1800px;
  margin: auto;
}
.visual-panel {
  position: sticky;
  top: 0;
  height: calc(100vh - 0px);
  min-height: 760px;
  max-height: 1100px;
  overflow: hidden;
  border-right: 1px solid #d6cebc;
  background: #efe3c0;
}
.market-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.visual-copy {
  position: relative;
  padding: 58px 11% 0;
  z-index: 1;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #9e3d29;
  margin-bottom: 24px;
}
.visual-copy h1 {
  font-family: MarketSerif, "Noto Serif CJK SC", serif;
  font-size: clamp(3.1rem, 4.8vw, 5.8rem);
  line-height: 1.22;
  letter-spacing: 0.055em;
  font-weight: 900;
  margin: 0 0 22px;
  position: relative;
}
.tiny-seal {
  font-family: MarketSerif, serif;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 5px;
  color: #b43e27;
  border: 1px solid #b43e27;
  transform: rotate(7deg);
  vertical-align: middle;
  margin-left: 14px;
}
.visual-description {
  font-size: 0.9375rem;
  color: #67513b;
  line-height: 1.9;
}
.event-date {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: #a73723;
  margin-top: 30px;
}
.event-date b {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.event-date span {
  font-size: 0.75rem;
}
.venue {
  font-size: 0.875rem;
  color: #584531;
  margin-top: 7px;
  line-height: 1.6;
}
.venue small {
  color: #7b6145;
  font-size: 0.75rem;
}
.visual-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 8%;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: #ece0bddb;
  color: #6c4c2d;
  border-top: 1px solid #b6905640;
  z-index: 2;
}
.cloud {
  position: absolute;
  background: #fff9e666;
  height: 34px;
  width: 160px;
  border-radius: 100%;
  transform: rotate(-10deg);
  filter: blur(7px);
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}
.cloud-one {
  top: 50%;
  left: -40px;
}
.cloud-two {
  bottom: 17%;
  right: -50px;
  animation-delay: -8s;
}
.form-panel {
  padding: 52px clamp(26px, 4.5vw, 90px) 20px;
  min-width: 0;
  background: #faf8f2;
}
.form-heading .eyebrow {
  margin-bottom: 12px;
  font-size: 0.75rem;
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading-row h2 {
  font-size: 2.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.issue {
  font-size: 0.75rem;
  color: #88745d;
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
}
.form-heading > p:last-child {
  font-size: 0.875rem;
  color: #7f7667;
  margin-bottom: 28px;
}
.application-note {
  border-top: 1px solid #c7b69b;
  border-bottom: 1px solid #d8cdbc;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 28px;
}
.application-note > span {
  font-size: 0.75rem;
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  color: #8b492f;
}
.application-note p {
  font-size: 0.8125rem;
  margin: 0;
  flex: 1;
}
.application-note small {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}
.application-note .text-button {
  font-size: 0.75rem;
  white-space: nowrap;
}
.steps {
  display: flex;
  border-bottom: 1px solid #dcd4c7;
  margin: 0 0 28px;
}
.steps button {
  flex: 1;
  color: #8f887c;
  font-size: 0.875rem;
  padding: 13px 0 17px;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.steps button.active {
  color: #a73b27;
  border-bottom-color: #a73b27;
}
.steps em {
  font-style: normal;
  font-size: 0.75rem;
  margin-right: 8px;
  letter-spacing: 0.04em;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
  font-family: MarketSerif, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}
.section-hint {
  font-size: 0.75rem;
  color: #8b8171;
  margin-bottom: 25px;
}
.field {
  margin-bottom: 22px;
}
.field > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.field label > span,
.upload-title span {
  color: #b33d2a;
  margin-left: 3px;
}
.field > small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
}
.field label small {
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 7px;
}
.field input,
.field select,
.field textarea {
  font-size: 1rem;
}
input::placeholder,
textarea::placeholder {
  color: #a39a8d;
}
select {
  min-height: 49px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #ddd5c7;
  margin-top: 16px;
  padding-top: 25px;
}
.form-actions > span {
  font-size: 0.75rem;
  color: #8f8371;
  flex: 1;
}
.primary {
  background: #a93723;
  color: #fff8e8;
  min-height: 47px;
  padding: 12px 28px;
  border-radius: 2px;
  display: inline-flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: #892a1a;
}
.primary:active {
  transform: translateY(1px);
}
.secondary {
  background: transparent;
  color: #7d492e;
  border: 1px solid #c7b79f;
  min-height: 43px;
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 0.875rem;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #9b8e7d;
}
.form-footer .text-button {
  font-size: 0.75rem;
}
.warm-note {
  padding: 25px;
  background: #f1eadb;
  color: #8b5c36;
  font-family: MarketSerif, serif;
  line-height: 2;
  font-size: 1.5rem;
  margin: 18px 0;
}
.warm-note small {
  font-family: sans-serif;
}
.upload-group {
  margin-bottom: 28px;
}
.upload-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.875rem;
}
.upload-title small {
  font-size: 0.75rem;
}
.dropzone {
  border: 1px dashed #c9b79d;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 19px 23px;
  cursor: pointer;
  background: #f5f0e5;
  transition: background 0.2s;
}
.dropzone:hover {
  background: #eee3d2;
}
.dropzone b {
  font-size: 1.5rem;
  color: #a73b27;
  font-weight: 400;
}
.dropzone span {
  font-size: 0.875rem;
}
.dropzone small {
  display: block;
  font-size: 0.75rem;
  margin-top: 2px;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.file-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.file-item {
  position: relative;
  width: calc(33.333% - 7px);
  min-width: 90px;
  border: 1px solid #ddd3c3;
  background: #fffdf8;
  overflow: hidden;
}
.file-item img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
}
.file-item p {
  font-size: 0.75rem;
  padding: 4px 6px;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.file-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #fcf7ec;
  color: #91311f;
  padding: 0;
}
.consent {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  line-height: 1.8;
  margin: 25px 0;
}
.inline-button {
  font: inherit;
  background: none;
  color: #a63a26;
  text-decoration: underline;
  padding: 0;
}
.challenge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  flex-wrap: wrap;
}
.challenge label span {
  margin-left: 8px;
  color: #a33a28;
}
.challenge input {
  width: 110px;
  font-size: 0.875rem;
}
.form-message {
  background: #fae9df;
  color: #942e1c;
  padding: 12px 15px;
  font-size: 0.8125rem;
  margin: 16px 0;
  border-left: 3px solid #af3926;
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 40px;
  background: #faf7ef;
  border: 1px solid #c4b294;
  color: #2b281f;
  border-radius: 5px;
  box-shadow: 0 20px 100px #1e150640;
  overflow: auto;
}
dialog::backdrop {
  background: #27231980;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 1.8rem;
  margin: 0 0 16px;
}
dialog > p {
  font-size: 0.875rem;
  color: #7d6b58;
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 9px;
  background: transparent;
  font-size: 1.7rem;
  color: #8d7357;
  padding: 0 8px;
}
.prose {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #655a4b;
}
.prose p {
  margin-bottom: 18px;
}
.contact-poster {
  width: 100%;
  height: auto;
}
#code-wrap {
  background: #eee5d2;
  padding: 22px;
  margin: 24px 0;
}
#code-wrap label {
  font-size: 0.875rem;
}
#code-wrap p {
  font-size: 0.75rem;
  color: #7c6952;
}
#edit-code {
  display: block;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
  user-select: all;
  margin: 12px 0;
  color: #942e1c;
}
#success-dialog .primary {
  width: 100%;
}
progress {
  width: 100%;
  height: 8px;
  margin-top: 14px;
  accent-color: #a63824;
}
.error-page {
  padding: 12vw;
}
.error-page h1 {
  font-size: 2rem;
}
[hidden] {
  display: none !important;
}
@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 42px -14px;
  }
}
@media (min-width: 1500px) {
  .visual-panel {
    min-height: 970px;
  }
  .visual-copy {
    padding-top: 80px;
  }
}
@media (max-width: 1050px) {
  .registration-layout {
    grid-template-columns: 42% 58%;
  }
  .visual-copy {
    padding: 45px 8%;
  }
  .visual-copy h1 {
    font-size: 3.25rem;
  }
  .event-date {
    display: block;
  }
  .event-date span {
    display: block;
  }
  .form-panel {
    padding: 40px 30px;
  }
  .application-note {
    gap: 10px;
  }
  .topbar {
    padding: 0 30px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 75px;
    padding: 0 20px;
  }
  .top-right {
    gap: 12px;
  }
  .open-dot {
    display: none;
  }
  .wordmark {
    font-size: 1.1rem;
  }
  .registration-layout {
    display: block;
  }
  .visual-panel {
    position: relative;
    min-height: 0;
    height: 400px;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #c7b292;
  }
  .market-art {
    object-position: center 62%;
    opacity: 0.76;
  }
  .visual-copy {
    padding: 30px 25px;
    width: 100%;
    background: linear-gradient(90deg, #f3e8cdef, transparent);
  }
  .visual-copy .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }
  .visual-copy h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .visual-description {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  .event-date {
    margin-top: 10px;
    display: flex;
    gap: 13px;
  }
  .event-date b {
    font-size: 1.5rem;
  }
  .venue {
    font-size: 0.75rem;
    margin-top: 4px;
  }
  .venue small {
    font-size: 0.75rem;
  }
  .visual-bottom {
    padding: 9px 25px;
    font-size: 0.75rem;
  }
  .form-panel {
    padding: 32px 23px 16px;
  }
  .form-heading h2 {
    font-size: 1.9rem;
  }
  .form-heading > p:last-child {
    margin-bottom: 22px;
  }
  .application-note {
    margin-bottom: 19px;
  }
  .application-note small {
    font-size: 0.75rem;
  }
  .two-col {
    gap: 14px;
  }
  .form-footer {
    letter-spacing: 0;
  }
  .primary {
    padding: 12px 22px;
    gap: 22px;
  }
  dialog {
    padding: 32px 24px;
  }
  .steps button {
    font-size: 0.8125rem;
  }
  .steps em {
    margin-right: 5px;
  }
  .form-actions {
    gap: 9px;
  }
  .form-actions .secondary {
    padding: 9px;
  }
  .form-actions > span {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
