/* Official artwork is displayed intact. Motion lives only behind the panels. */
.registration-page {
  --ink: #24231d;
  --muted: #857c69;
  --red: #a93523;
  --line: #ded3bc;
  --paper: #fffcf4;
  background: #e9dfc5;
  color: var(--ink);
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}
.registration-page [hidden] {
  display: none !important;
}
.registration-page .topbar {
  height: 72px;
  padding: 0 3vw;
  background: #f9f4e7e8;
  border-color: #c6b79266;
  backdrop-filter: blur(12px);
  z-index: 2;
}
.registration-page .brand-avatar {
  width: 47px;
  height: 47px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 3px 12px #58422b12;
}
.registration-page .wordmark {
  font-size: 19px;
  letter-spacing: 0.12em;
  font-weight: 900;
  gap: 12px;
}
.registration-page .wordmark small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #9a8664;
}
.registration-page .top-right {
  gap: 24px;
}
.registration-page .open-dot {
  font-size: 11px;
  color: #746952;
}
.registration-page .open-dot:before {
  background: #8f5429;
  box-shadow: 0 0 0 4px #a2753120;
}
.registration-page .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 15px;
  border: 1px solid #cbbb9c;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: #fffaf03d;
  color: #655238;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.registration-page .text-button:hover {
  background: #fffaf0;
  border-color: #a77b48;
  box-shadow: 0 4px 16px #69502b0c;
  transform: translateY(-1px);
}
.registration-page .registration-layout {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  padding: 20px 3vw 24px;
  gap: 24px;
  grid-template-columns: minmax(270px, 0.85fr) minmax(560px, 1.35fr);
  height: calc(100dvh - 72px);
}
.registration-page .visual-panel {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.poster-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#official-poster {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 14px 36px #51422224;
  border-radius: 2px;
}
.poster-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  flex-shrink: 0;
}
.poster-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 99px;
  background: #f9f4e694;
  border: 1px solid #c6b79275;
}
.poster-tabs button {
  border-radius: 99px;
  background: transparent;
  font-size: 11px;
  color: #887458;
  padding: 6px 12px;
  transition: 0.25s;
}
.poster-tabs button[aria-pressed="true"] {
  background: #443a2c;
  color: #fff6df;
  box-shadow: 0 2px 5px #5b472025;
}
.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #c6b792;
  background: #f9f4e6c4;
  color: #806746;
  font-size: 20px;
  line-height: 1;
}
.registration-page .form-panel {
  padding: 26px 32px 14px;
  background: linear-gradient(140deg, #fffdf7f8, #fcf7ebf5);
  border: 1px solid #fff9e8;
  border-radius: 18px;
  box-shadow:
    0 18px 65px #67543112,
    inset 0 0 0 1px #ad986110;
  min-height: 0;
  overflow: visible;
}
.form-inner {
  transform-origin: top center;
  width: 100%;
}
.registration-page .form-heading .eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 5px;
  color: #9d7f52;
}
.registration-page .heading-row h2 {
  font-family: "Noto Serif CJK SC", serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin: 0 0 7px;
}
.registration-page .issue {
  writing-mode: horizontal-tb;
  font-size: 10px;
  letter-spacing: 0.2em;
  border: 1px solid #d9c6a6;
  padding: 4px 8px;
  border-radius: 3px;
  color: #917249;
}
.registration-page .form-heading > p:last-child {
  font-size: 12px;
  font-weight: 300;
  color: #8c806a;
  margin-bottom: 15px;
}
.registration-page .application-note {
  gap: 12px;
  padding: 10px 12px;
  background: #ece0c02b;
  border: 1px solid #dfd1b3;
  border-radius: 7px;
  margin-bottom: 12px;
}
.registration-page .application-note > span {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.registration-page .application-note p {
  font-size: 11px;
  color: #79684b;
}
.registration-page .application-note b {
  font-size: 15px;
  font-family: Georgia, serif;
  color: #9e3a28;
  font-weight: 600;
}
.registration-page .application-note small {
  font-size: 9px;
  font-weight: 300;
  margin-top: 1px;
  color: #9b8d73;
}
.registration-page .application-note .text-button {
  font-size: 10px;
  padding: 5px 9px;
  border-color: #d6c5a5;
}
.registration-page .steps {
  border: 0;
  background: #eee7d9;
  border-radius: 9px;
  padding: 4px;
  margin: 0 0 15px;
  gap: 4px;
}
.registration-page .steps button {
  padding: 8px 3px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #958773;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.registration-page .steps button.active {
  background: #fffdf6;
  color: #933b29;
  font-weight: 700;
  box-shadow: 0 3px 10px #76604013;
}
.registration-page .steps em {
  font-size: 10px;
  opacity: 0.55;
  margin-right: 7px;
  font-family: Georgia, serif;
}
.registration-page fieldset {
  animation: page-enter 0.35s ease;
}
.registration-page legend {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.registration-page .section-hint {
  font-size: 10px;
  font-weight: 300;
  margin-bottom: 13px;
  line-height: 1.6;
  color: #978c78;
}
.registration-page .field {
  margin-bottom: 12px;
}
.registration-page .field > label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.035em;
  margin-bottom: 5px;
}
.registration-page .field label small {
  font-size: 9px;
  font-weight: 400;
  color: #aaa08d;
  border: 1px solid #e3dbc9;
  padding: 1px 4px;
  border-radius: 3px;
}
.registration-page .field > small {
  font-size: 9px;
  text-align: right;
  margin-top: 3px;
  color: #a19886;
}
.registration-page input,
.registration-page select,
.registration-page textarea {
  border: 1px solid #dfd8c9;
  border-radius: 7px;
  background: #fffefbf0;
  padding: 10px 12px;
  font-size: 13px !important;
  box-shadow: inset 0 1px 2px #6b532803;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  min-height: 39px;
  line-height: 1.5;
}
.registration-page input:hover,
.registration-page select:hover,
.registration-page textarea:hover {
  border-color: #c5b291;
}
.registration-page input:focus,
.registration-page select:focus,
.registration-page textarea:focus {
  border-color: #b48252;
  background: #fffefa;
  box-shadow:
    0 0 0 3px #b78b4212,
    0 4px 10px #7c5d2910;
}
.registration-page input::placeholder,
.registration-page textarea::placeholder {
  color: #b1a894;
  font-weight: 300;
  font-size: 12px;
}
.registration-page textarea {
  resize: none;
  min-height: 75px;
}
.registration-page #intro {
  height: 78px;
}
.registration-page #power_detail {
  height: 62px;
  min-height: 62px;
}
.registration-page select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("/static/select-chevron.svg");
  background-position: right 12px center;
  background-size: 12px;
  background-repeat: no-repeat;
}
.registration-page .two-col {
  gap: 16px;
}
.registration-page .warm-note {
  background: linear-gradient(110deg, #eee2c570, #f8f4e940);
  border-left: 2px solid #b9925a;
  border-radius: 0 8px 8px 0;
  padding: 10px 15px;
  margin: 3px 0;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: #81633a;
  line-height: 1.4;
}
.registration-page .warm-note small {
  font-size: 9px;
  letter-spacing: 0.02em;
  color: #9a8c74;
}
.registration-page .form-actions {
  padding-top: 13px;
  margin-top: 8px;
  gap: 12px;
  border-color: #e5dcc9;
}
.registration-page .form-actions > span {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 300;
}
.registration-page .primary {
  background: linear-gradient(125deg, #b6452e, #922d20);
  border: 1px solid #983020;
  border-radius: 8px;
  min-height: 43px;
  padding: 10px 23px;
  box-shadow:
    0 5px 13px #a1362420,
    inset 0 1px 0 #f7986633;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    filter 0.22s;
  gap: 28px;
}
.registration-page .primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px #a136242a;
}
.registration-page .primary:active {
  transform: translateY(0) scale(0.98);
}
.registration-page .secondary {
  border: 1px solid #d8c7aa;
  border-radius: 8px;
  background: linear-gradient(#fffdf7, #f7f0e2);
  min-height: 41px;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 14px;
  transition: 0.2s;
  color: #795b39;
}
.registration-page .secondary:hover {
  border-color: #b5966a;
  box-shadow: 0 4px 12px #8f703518;
  transform: translateY(-1px);
}
.registration-page .form-footer {
  padding: 12px 0 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #b0a48e;
}
.registration-page .form-footer .text-button {
  font-size: 10px;
  padding: 6px 11px;
  gap: 15px;
  color: #8d6240;
  background: #f4ead652;
  border-color: #dfcdb1;
}
.button-arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  background: #e9dcc1;
  border-radius: 50%;
  color: #8b6238;
  transition: transform 0.25s;
}
.text-button:hover .button-arrow {
  transform: rotate(45deg);
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.registration-page .upload-group {
  min-width: 0;
  margin: 0;
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  padding: 10px;
  background: #fefaf0;
}
.registration-page .upload-title {
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 7px;
  gap: 5px;
}
.registration-page .upload-title small {
  font-size: 9px;
  font-weight: 300;
  white-space: nowrap;
}
.registration-page .dropzone {
  padding: 9px 10px;
  gap: 9px;
  border-radius: 5px;
  background: #f2e8d33d;
  border: 1px dashed #d0bc96;
  min-height: 53px;
  transition: 0.25s;
}
.registration-page .dropzone:hover,
.registration-page .dropzone.dragging {
  background: #eddfc57a;
  border-color: #aa7944;
}
.registration-page .dropzone b {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: #ae8451;
}
.registration-page .dropzone span {
  font-size: 11px;
  font-weight: 500;
}
.registration-page .dropzone small {
  font-size: 8px;
  color: #a19580;
  font-weight: 300;
  margin-top: 2px;
}
.registration-page .file-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.registration-page .file-list:empty {
  display: none;
}
.registration-page .file-item {
  width: auto;
  min-width: 0;
  border-radius: 4px;
  aspect-ratio: 1.2;
  position: relative;
}
.registration-page .file-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.registration-page .file-item p {
  display: none;
}
.registration-page .file-item button {
  width: 16px;
  height: 16px;
  top: 1px;
  right: 1px;
  font-size: 13px;
  line-height: 1;
  background: #fffffff0;
}
.file-manage {
  background: transparent;
  color: #9f7246;
  font-size: 9px;
  padding: 5px 0 0;
  text-align: right;
  width: 100%;
}
.registration-page .consent {
  font-size: 9px;
  line-height: 1.8;
  margin: 12px 0;
  gap: 8px;
  align-items: flex-start;
  color: #91836c;
  font-weight: 300;
}
.registration-page input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  margin: 2px 0;
  accent-color: #a33724;
  box-shadow: none;
}
.registration-page .challenge {
  gap: 10px;
  font-size: 11px;
  background: #f2eadb70;
  border-radius: 6px;
  padding: 7px 10px;
}
.registration-page .challenge input {
  width: 95px;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px !important;
}
.registration-page .challenge .text-button {
  font-size: 10px;
  border: 0;
  background: transparent;
  padding: 3px 6px;
  margin-left: auto;
}
.registration-page .form-message {
  font-size: 11px;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
  line-height: 1.5;
}
.registration-page progress {
  width: 100%;
  height: 5px;
  accent-color: #a43b26;
}
.registration-page dialog {
  border: 1px solid #e1d3b5;
  border-radius: 16px;
  padding: 32px;
  background: linear-gradient(140deg, #fffcf4, #f4ecd9);
  box-shadow: 0 30px 120px #32240a40;
}
.registration-page dialog[open] {
  animation: dialog-enter 0.28s ease;
}
.registration-page dialog::backdrop {
  background: #2c251c78;
  backdrop-filter: blur(8px);
}
.registration-page dialog h2 {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.registration-page dialog > .eyebrow {
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.2em;
  color: #9d7a48;
}
.registration-page dialog > p {
  font-size: 12px;
  line-height: 1.8;
}
.registration-page .dialog-close {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  right: 13px;
  top: 13px;
  background: #b08e5214;
  line-height: 1;
  font-size: 22px;
  padding: 0;
  transition: 0.2s;
}
.registration-page .dialog-close:hover {
  background: #b08e5230;
  transform: rotate(90deg);
}
.registration-page .prose {
  font-size: 12px;
  line-height: 2;
}
#contact-dialog {
  width: min(450px, calc(100vw - 24px));
  text-align: center;
}
.registration-page .contact-poster {
  height: min(53vh, 480px);
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 16px auto;
  border-radius: 4px;
}
.contact-tip {
  background: #e8ddc44a;
  padding: 9px;
  border-radius: 6px;
  color: #907346 !important;
  font-size: 10px !important;
  margin-bottom: 0;
}
.poster-dialog {
  width: auto !important;
  max-width: 96vw;
  padding: 24px !important;
}
#poster-large {
  max-width: 85vw;
  height: 82vh;
  object-fit: contain;
  display: block;
}
.expanded-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.registration-page .expanded-files .file-item {
  aspect-ratio: auto;
  width: 100%;
  min-width: 0;
}
.registration-page .expanded-files .file-item img {
  height: 110px;
}
.registration-page .expanded-files .file-item p {
  display: block;
  font-size: 10px;
}
.registration-page .expanded-files .file-item button {
  width: 24px;
  height: 24px;
  font-size: 18px;
}
.registration-page #code-wrap {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d7bf96;
  background: #eadfc7;
  border-radius: 8px;
}
.registration-page #edit-code {
  font-size: 18px;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 10px;
}
.receipt-actions button {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.receipt-actions span {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: #a68a60;
}
.registration-page .receipt-note {
  font-size: 10px;
  color: #a0947f;
  line-height: 1.8;
}
#finish {
  width: 100%;
  margin-top: 8px;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0 85%, #b8934740, transparent 50%),
    radial-gradient(ellipse at 98% 15%, #fff6db70, transparent 60%);
  z-index: 0;
}
.ambient:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("/static/paper-grain.svg");
}
.smoke {
  position: absolute;
  bottom: -180px;
  width: 330px;
  height: 420px;
  background: radial-gradient(ellipse, #fff9e25c, transparent 68%);
  filter: blur(23px);
  border-radius: 50%;
  animation: smoke-rise 24s ease-in infinite;
}
.s1 {
  left: -140px;
}
.s2 {
  right: -140px;
  animation-delay: -12s;
  animation-duration: 30s;
}
.leaf {
  position: absolute;
  top: -40px;
  width: 12px;
  height: 22px;
  border-radius: 90% 0 90% 0;
  background: linear-gradient(55deg, #8d5221a0, #c0984890);
  animation: leaf-fall 24s linear infinite;
  opacity: 0;
}
.l1 {
  left: 1%;
  animation-delay: -5s;
}
.l2 {
  left: 97%;
  animation-delay: -12s;
  animation-duration: 29s;
}
.l3 {
  left: 40%;
  animation-delay: -19s;
  animation-duration: 31s;
  width: 8px;
  height: 15px;
}
.l4 {
  left: 3%;
  animation-delay: -23s;
  animation-duration: 34s;
}
.l5 {
  left: 98%;
  animation-delay: -8s;
  animation-duration: 27s;
}
.l6 {
  left: 42%;
  animation-delay: -14s;
  animation-duration: 35s;
  width: 10px;
  height: 16px;
}
.l7 {
  left: 0;
  animation-delay: -29s;
  animation-duration: 39s;
}
@keyframes leaf-fall {
  0% {
    transform: translate(0, -40px) rotate(0deg) rotateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  25% {
    transform: translate(25px, 25vh) rotate(65deg) rotateY(120deg);
  }
  50% {
    transform: translate(-5px, 50vh) rotate(150deg) rotateY(220deg);
  }
  75% {
    transform: translate(30px, 75vh) rotate(230deg) rotateY(320deg);
    opacity: 0.4;
  }
  100% {
    transform: translate(8px, 110vh) rotate(310deg) rotateY(400deg);
    opacity: 0;
  }
}
@keyframes smoke-rise {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  30% {
    opacity: 0.65;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: translate(60px, -110vh) scale(1.7);
    opacity: 0;
  }
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1000px) and (min-height: 600px) {
  .registration-page {
    height: 100dvh;
    overflow: hidden;
  }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .registration-page .topbar {
    height: 60px;
  }
  .registration-page .registration-layout {
    height: calc(100dvh - 60px);
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 20px;
  }
  .registration-page .form-panel {
    padding: 20px 27px 10px;
  }
  .registration-page .brand-avatar {
    height: 39px;
    width: 39px;
  }
  .registration-page .heading-row h2 {
    font-size: 30px;
  }
}
@media (max-width: 999px) {
  .registration-page .topbar {
    height: 67px;
    padding: 0 18px;
  }
  .registration-page .registration-layout {
    display: block;
    height: auto;
    padding: 20px 16px;
  }
  .registration-page .visual-panel {
    height: 68vh;
    min-height: 370px;
    margin-bottom: 20px;
  }
  .registration-page .form-panel {
    padding: 24px;
    border-radius: 13px;
    max-width: 700px;
    margin: auto;
  }
  .registration-page .form-inner {
    zoom: 1 !important;
  }
  .registration-page .open-dot {
    display: none;
  }
  .registration-page .top-right {
    gap: 0;
  }
  .registration-page .topbar .text-button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .registration-page .wordmark {
    font-size: 16px;
    gap: 9px;
  }
  .registration-page .brand-avatar {
    width: 40px;
    height: 40px;
  }
  .registration-page .issue {
    font-size: 9px;
  }
  .registration-page input,
  .registration-page textarea,
  .registration-page select {
    font-size: 16px !important;
  }
  .registration-page .field > label {
    font-size: 12px;
  }
  .registration-page .field {
    margin-bottom: 17px;
  }
  .registration-page .section-hint {
    font-size: 11px;
  }
  .registration-page .heading-row h2 {
    font-size: 30px;
  }
  .registration-page .form-footer {
    padding-top: 22px;
  }
  .registration-page .consent {
    font-size: 11px;
  }
  .registration-page .challenge {
    font-size: 12px;
  }
  .registration-page .challenge input {
    font-size: 16px !important;
  }
  .registration-page .upload-group {
    padding: 10px;
  }
  .registration-page .upload-title {
    display: block;
    font-size: 12px;
  }
  .registration-page .upload-title small {
    display: block;
    margin-top: 3px;
  }
  .registration-page .dropzone {
    padding: 12px 7px;
  }
  .registration-page .dropzone small {
    display: none;
  }
  .registration-page .upload-grid {
    gap: 10px;
  }
  .registration-page .application-note .text-button {
    padding: 6px;
  }
  .registration-page .two-col {
    gap: 12px;
  }
  .registration-page .form-actions > span {
    font-size: 9px;
  }
  .registration-page .primary {
    padding: 11px 18px;
    gap: 15px;
  }
  .registration-page .receipt-actions {
    grid-template-columns: 1fr;
  }
  .registration-page dialog {
    padding: 27px 22px;
  }
  .registration-page .file-item button {
    width: 20px;
    height: 20px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .registration-page *,
  .registration-page *:before,
  .registration-page *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .ambient .leaf {
    display: none;
  }
}

/* Lightweight previews keep the official composition; full art loads on demand. */
.poster-frame picture { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.image-stage { position: relative; }
.image-stage img { opacity: 0; transition: opacity 650ms ease; }
.image-stage img.is-ready { opacity: 1; }
.image-status { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #8e7752; font-size: 12px; text-align: center; }
.loading-ring { display: block; width: 27px; height: 27px; border: 1.5px solid #a2804833; border-top-color: #a47740; border-radius: 50%; animation: loading-spin 1s linear infinite; }
.is-error .loading-ring { display: none; }
.image-retry { border: 1px solid #c3aa80; border-radius: 30px; padding: 7px 14px; background: #fff9ec; color: #856339; font-size: 11px; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
#official-poster { width: auto; }
.contact-stage { height: min(53vh, 480px); margin: 16px auto; }
.registration-page .contact-poster { margin: 0; height: 100%; }
.enlarged-stage { width: min(46.125vh, 85vw); height: 82vh; }
#poster-large { width: 100%; height: 100%; }
.recruit-dates { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.recruit-dates > span { white-space: nowrap; }
.registration-page .form-heading > p:last-child strong { font-weight: 600; color: #9e3a28; }
.link-chevron { display: inline-block; width: 5px; height: 5px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); opacity: .7; flex: 0 0 auto; margin: 0 3px; transition: transform .25s ease; }
.text-button:hover .link-chevron { transform: translateX(2px) rotate(45deg); }
@media (max-width: 599px) {
  .recruit-dates { flex-direction: column; gap: 3px; align-items: flex-start; }
  .registration-page .application-note { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 7px 10px; }
  .registration-page .application-note > span { grid-row: 1 / 3; align-self: start; padding-top: 3px; }
  .registration-page .application-note .text-button { grid-column: 2; justify-self: start; margin-top: 2px; padding: 4px 10px; }
  .registration-page .application-note p { min-width: 0; }
  .registration-page .application-note small { margin-top: 5px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .registration-page .image-stage img { transition: opacity 200ms ease !important; }
  .registration-page .loading-ring { animation: loading-spin 2s linear infinite !important; }
}
.poster-dialog { width: min(calc(46.125vh + 48px), calc(100vw - 24px)) !important; }
.enlarged-stage { max-width: 100%; }

#official-poster { cursor: zoom-in; }
#official-poster:focus-visible { outline: 2px solid #9f7043; outline-offset: 4px; }
@media (max-width: 999px) {
  .registration-page .topbar { display: none; }
  .registration-page .registration-layout { padding: 8px 10px 24px; }
  .registration-page .visual-panel {
    height: auto;
    min-height: 0;
    max-width: 560px;
    margin: 0 auto 22px;
    overflow: visible;
  }
  .poster-frame { flex: none; aspect-ratio: 9 / 16; }
  #official-poster { width: 100%; height: 100%; box-shadow: 0 9px 26px #51422218; }
  .poster-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) minmax(0, 1.35fr);
    gap: 3px;
    width: 100%;
    margin-top: 12px;
    padding: 5px;
    border: 1px solid #fff8e69e;
    border-radius: 12px;
    background: #faf5e75c;
    backdrop-filter: blur(16px);
  }
  .poster-tabs { display: contents; }
  #enlarge-poster { display: none; }
  .registration-page .poster-toolbar button {
    min-height: 40px;
    min-width: 0;
    padding: 6px 2px;
    font-size: clamp(9px, 2.7vw, 12px);
    letter-spacing: 0;
    white-space: nowrap;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #716047;
    font-weight: 500;
    box-shadow: none;
    justify-content: center;
  }
  .registration-page .poster-toolbar button[aria-pressed="true"] {
    background: #fffaf0c9;
    color: #9c3d2c;
    box-shadow: 0 2px 7px #71542b0a;
  }
  .registration-page .poster-toolbar #open-lookup,
  .registration-page .poster-toolbar #open-contact { color: #523e2c; font-weight: 600; }
  .registration-page .form-panel {
    padding: 25px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffdf650, #fff8e52b);
    border: 1px solid #fffcf2b8;
    backdrop-filter: blur(24px) saturate(115%);
    -webkit-backdrop-filter: blur(24px) saturate(115%);
    box-shadow: 0 14px 42px #68542e0c, inset 0 1px 0 #ffffff8c;
  }
  .registration-page .application-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 15px 12px;
    background: #fffaf02b;
    border: 1px solid #c5af814a;
    border-radius: 12px;
  }
  .registration-page .application-note > span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    writing-mode: horizontal-tb;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: #655136;
  }
  .registration-page .application-note .text-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 5px 10px;
    margin: 0;
    background: #fffaf044;
    border-color: #c8b59173;
  }
  .registration-page .application-note p { grid-column: 1 / -1; grid-row: 2; }
  .recruit-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
  .recruit-dates > span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 7px; font-size: 11px; }
  .recruit-dates > span + span { border-left: 1px solid #b79b6b42; }
  .registration-page .application-note b { font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; }
  .registration-page .application-note small { margin-top: 10px; padding-top: 9px; border-top: 1px solid #b79b6b30; text-align: center; font-size: 9px; line-height: 1.7; }
  .registration-page .steps { background: #f4ecdb63; }
}

.scroll-cue { display: none; }
@media (max-width: 999px) {
  .registration-page { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .poster-toolbar { min-width: 0; max-width: 100%; min-height: 56px; grid-auto-rows: minmax(44px, auto); flex-shrink: 0; box-sizing: border-box; align-items: stretch; }
  .poster-tabs { display: none; }
  .registration-page .poster-toolbar > button {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: center;
  }
  .registration-page .poster-toolbar > #enlarge-poster { display: none; }
  .registration-page .scroll-cue {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateX(-50%);
    border: 1px solid #fff8e8bd;
    border-radius: 50%;
    background: #fff9e7c4;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 3px 15px #5b412226;
    color: #866036;
  }
  @supports (height: 100svh) {
    .registration-page .scroll-cue {
      bottom: auto;
      top: min(calc(100% - 88px), calc(100svh - 76px));
    }
  }
  .scroll-cue i {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    animation: scroll-cue-nudge 2.8s ease-in-out infinite;
  }
  .image-stage.is-loading .scroll-cue { visibility: hidden; }
  .registration-page .form-panel { scroll-margin-top: 12px; }
}
@keyframes scroll-cue-nudge {
  0%, 100% { transform: translateY(-2px) rotate(45deg); }
  50% { transform: translateY(2px) rotate(45deg); }
}

/* Lightly frosted glass keeps moving shapes visible behind the content. */
.registration-page .form-panel {
  background: linear-gradient(135deg, #fffdf617, #fff8e508);
  backdrop-filter: blur(3px) saturate(108%);
  -webkit-backdrop-filter: blur(3px) saturate(108%);
  border-color: #fffcf28f;
  box-shadow: 0 12px 38px #68542e09, inset 0 1px 0 #ffffffa1, inset 1px 0 0 #ffffff24;
}
.registration-page .form-panel input,
.registration-page .form-panel select,
.registration-page .form-panel textarea { background-color: #fffdf6a8; }
.registration-page .ambient .leaf {
  display: block !important;
  width: 19px;
  height: 31px;
  background: linear-gradient(55deg, #88501bd1, #bc8848b8);
  animation-name: glass-leaf-fall !important;
  animation-duration: var(--leaf-duration, 32s) !important;
  animation-delay: var(--leaf-delay, -6s) !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}
.ambient .leaf::after { content: ""; position: absolute; top: 5px; left: 9px; width: 1px; height: 23px; background: #74482070; transform: rotate(28deg); }
.ambient .l1 { left: 8%; --leaf-delay: -5s; --leaf-duration: 34s; }
.ambient .l2 { left: 24%; --leaf-delay: -17s; --leaf-duration: 38s; }
.ambient .l3 { left: 40%; --leaf-delay: -10s; --leaf-duration: 32s; }
.ambient .l4 { left: 57%; --leaf-delay: -25s; --leaf-duration: 36s; }
.ambient .l5 { left: 72%; --leaf-delay: -13s; --leaf-duration: 35s; }
.ambient .l6 { left: 86%; --leaf-delay: -20s; --leaf-duration: 40s; }
.ambient .l7 { left: 94%; --leaf-delay: -30s; --leaf-duration: 43s; }
@keyframes glass-leaf-fall {
  0% { transform: translate(0, -40px) rotate(-15deg); opacity: 0; }
  10% { opacity: .65; }
  25% { transform: translate(14px, 25vh) rotate(40deg); }
  50% { transform: translate(-10px, 52vh) rotate(125deg); opacity: .7; }
  75% { transform: translate(18px, 78vh) rotate(205deg); opacity: .6; }
  100% { transform: translate(0, 112vh) rotate(285deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .registration-page .ambient .leaf { animation-duration: 65s !important; }
}
@media (max-width: 999px) {
  .registration-page .scroll-cue {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #ffffff29, #fff4d90d);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid #fffbe1b0;
    box-shadow: 0 0 13px #fff8d966, 0 0 3px #ffffff6b, inset 0 0 8px #ffffff30;
    color: #775735;
  }
  .scroll-cue i {
    position: relative;
    width: 1.5px;
    height: 22px;
    border: 0;
    background: currentColor;
    transform: none;
    animation: long-arrow-nudge 2.8s ease-in-out infinite;
  }
  .scroll-cue i::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    bottom: 0;
    left: 50%;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
  }
}
@keyframes long-arrow-nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}
.file-preview-fallback { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 8px; color: #806e52; font-size: 11px; line-height: 1.6; background: #fffaf366; }
