.registration {
  --team-ink: #edf5ff;
  --team-muted: #a9bbcd;
  --team-line: #7fa0c04c;
  --team-surface: #0b1521ef;
  color: var(--team-ink);
  min-height: 100svh;
  background:
    linear-gradient(90deg, #060d1978 0%, #070f1bc4 44%, #070e19 77%),
    linear-gradient(0deg, #04090f, #080d1740),
    url("./assets/exhibit/works/nebula.jpg") 20% 54% / cover,
    #070e19;
}

.registration [hidden] { display: none !important; }

.registration-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  width: min(88%, 1300px);
  min-height: 100%;
  margin-inline: auto;
  padding: 30px 0 clamp(36px, 9vh, 100px);
  box-sizing: border-box;
}

.registration-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--team-line);
}

.registration-nav a {
  display: flex;
  align-items: center;
  gap: .62em;
  min-height: 44px;
  color: #cddbef;
  font-size: 14px;
}

.registration-nav a:hover, .team-text:hover { color: white; }

.registration-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(45px, 5.65vw, 88px);
  line-height: 1.07;
  font-weight: 500;
  letter-spacing: .045em;
  text-shadow: 0 5px 40px #02060999;
}

.registration-heading p {
  margin: 0;
  color: #d4e2f3;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.8;
}

.team-panel, .team-invite {
  box-sizing: border-box;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--team-line);
  border-radius: 9px;
  background: var(--team-surface);
  box-shadow: 0 24px 80px #0004;
}

.team-modes {
  display: flex;
  gap: 25px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--team-line);
}

.team-modes button, .team-text, .team-dialog-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--team-muted);
  font: inherit;
  cursor: pointer;
}

.team-modes button {
  min-height: 44px;
  padding: 0 2px 9px;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  text-align: left;
}

.team-modes button[aria-pressed="true"] { color: var(--team-ink); border-color: #9dd6fc; }
.team-modes button:hover { color: white; }

.team-form { display: grid; gap: 19px; }
.team-form label, .team-invite label {
  display: grid;
  gap: 7px;
  color: #d5e3f1;
  font-size: 14px;
}

.team-form input, .team-form select, .team-invite input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--team-line);
  border-radius: 5px;
  color: var(--team-ink);
  background: #070e18;
  font: inherit;
  font-size: 16px;
}

.team-form input::placeholder { color: #8c9fb2; }
#team-code, #invite-code { font-family: ui-monospace, monospace; letter-spacing: .12em; }
#team-code::placeholder { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; letter-spacing: normal; }
.team-primary, .team-secondary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.team-primary { background: #d9ecfb; color: #102034; font-weight: 650; }
.team-secondary { background: #142437; color: var(--team-ink); border-color: var(--team-line); }
.team-primary:hover:enabled { background: #f4faff; }
.team-secondary:hover:enabled { background: #20374c; }
.team-primary:disabled, .team-secondary:disabled { opacity: .48; cursor: default; }

.team-demo, .team-readiness, .team-lookup, .team-error, .copy-status {
  margin: 0;
  color: var(--team-muted);
  font-size: 13px;
  line-height: 1.55;
}
.team-demo { margin-top: 19px; }
.team-demo summary { min-height: 34px; align-content: center; cursor: pointer; }
.team-demo p { margin: 4px 0 11px; }
.team-demo button { font-size: 13px; min-height: 44px; }
.team-error { margin-top: 12px; color: #ffbaa9; }
.team-lookup { color: #b5dfff; overflow-wrap: anywhere; }
.team-identity, .team-members-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--team-muted);
  font-size: 13px;
}
.team-identity span { overflow-wrap: anywhere; }
.team-text { flex: none; min-height: 44px; color: #b5dfff; text-decoration: underline; text-underline-offset: 3px; }
.team-panel h3 { margin: 8px 0 23px; font-size: clamp(25px, 3vw, 38px); font-weight: 500; overflow-wrap: anywhere; }
.team-members-heading { border-bottom: 1px solid var(--team-line); padding-bottom: 9px; }
.team-members-heading h4 { margin: 0; font-weight: 500; font-size: 15px; color: var(--team-ink); }
#team-count { font: 14px ui-monospace, monospace; color: #b5dfff; }
#team-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 15px; padding: 0; margin: 12px 0 14px; list-style: none; }
#team-members li { padding: 5px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#team-members small { margin-left: 6px; color: #b5dfff; font-size: 11px; white-space: nowrap; }
.team-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.team-actions .team-primary { flex: 1 1 125px; }
.team-actions .team-secondary { flex: 1 0 auto; justify-content: center; }

.team-works {
  margin-bottom: 23px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--team-line);
}
.work-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.work-heading h4 { margin: 0; font-size: 20px; font-weight: 550; }
#work-window { color: #b5dfff; font-size: 12px; text-align: right; }
.work-phase-copy { margin: 8px 0 0; color: var(--team-muted); font-size: 13px; line-height: 1.55; }
.work-phase-copy:empty { display: none; }
.work-locked { margin-top: 10px; font-size: 13px; min-height: 44px; }
.work-upload { margin-top: 15px; gap: 12px; }
.work-upload input[type=file] { padding: 7px; font-size: 13px; }
.work-upload input::file-selector-button {
  min-height: 33px;
  margin-right: 10px;
  padding: 4px 10px;
  border: 1px solid var(--team-line);
  border-radius: 3px;
  background: #142437;
  color: var(--team-ink);
  font: inherit;
  cursor: pointer;
}
.work-upload progress { width: 100%; accent-color: #9dd6fc; }
#video-rules { margin: 0; }
.team-work-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--team-line);
  border-radius: 5px;
  background: #0c1825;
}
.team-work-version > div { min-width: 0; overflow-wrap: anywhere; }
.team-work-version span, .team-work-version small { display: block; color: #b5dfff; font-size: 12px; }
.team-work-version strong { display: block; margin: 3px 0; font-weight: 550; }
.team-work-version button { flex: none; min-height: 44px; font-size: 13px; }
.team-video-dialog { width: min(calc(100% - 32px), 820px); }
.team-video-dialog :is(video, img) { display: block; width: 100%; max-height: 65dvh; object-fit: contain; background: black; }

.team-invite { width: min(calc(100% - 32px), 450px); color: var(--team-ink); }
.team-invite[open] { display: grid; gap: 12px; }
.team-invite::backdrop { background: #010407bd; }
.team-invite h3 { margin: 0; font-size: 27px; font-weight: 500; }
.team-invite p { margin: 0; color: var(--team-muted); font-size: 14px; line-height: 1.55; }
.team-invite .copy-status { min-height: 1.55em; }
.team-dialog-close { position: absolute; inset: 8px 8px auto auto; width: 44px; height: 44px; font-size: 25px; }
.team-invite form { margin: 0; }

@media (max-width: 800px) {
  .registration { background-position: 34% center; }
  .registration-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 26px;
    padding: 18px 0 40px;
  }
  .registration-heading h2 { margin-bottom: 12px; }
  .team-panel { align-self: start; }
}
