.activity-detail {
  background: #eef2ef;
}
.activity-detail-hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 120px minmax(400px, 1fr) minmax(360px, 0.72fr);
  gap: 4vw;
  padding: 6vw 5vw 5vw;
  align-items: center;
  background: linear-gradient(125deg, #f4f7f3 0 68%, #dbe5df 68%);
}
.detail-index {
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.detail-index i {
  width: 1px;
  background: #a8b3ab;
  flex: 1;
}
.detail-index small {
  writing-mode: vertical-rl;
}
.detail-title > p:first-child,
.topic-label span,
.registration-drawer header span {
  font-size: 10px;
  letter-spacing: 0.21em;
  color: #00a47a;
  font-weight: 800;
}
.detail-title h1 {
  font-size: clamp(46px, 6vw, 94px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 22px 0;
}
.detail-title > p {
  color: #647068;
  line-height: 1.8;
  max-width: 680px;
}
.detail-title button {
  margin-top: 30px;
  border: 0;
  background: #0d1420;
  color: #fff;
  padding: 18px 24px;
  min-width: 220px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}
.detail-title button:hover {
  background: #00a47a;
}
.detail-poster {
  position: relative;
  transform: perspective(1000px) rotateY(-7deg) rotateX(2deg);
  filter: drop-shadow(0 32px 38px rgba(13, 20, 32, 0.18));
}
.detail-poster img {
  width: 100%;
  max-height: 68vh;
  height: auto;
  object-fit: contain;
  display: block;
}
.detail-poster span {
  position: absolute;
  right: -20px;
  bottom: 25px;
  background: #ceff4c;
  padding: 16px;
  font-size: 11px;
  font-weight: 800;
}
.topic-frame {
  width: min(1500px, 100%);
  margin: auto;
  padding: 80px 4vw;
  background: #fff;
}
.topic-label {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #dbe2dd;
  padding-bottom: 20px;
  margin-bottom: 40px;
}
.topic-label p {
  max-width: 540px;
  color: #647068;
  margin: 0;
}
.registration-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.registration-drawer.is-open {
  display: block;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 17, 0.62);
  backdrop-filter: blur(8px);
}
.registration-drawer > section {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(760px, 100%);
  background: #f8faf8;
  padding: 32px 42px;
  overflow: auto;
  animation: drawer-in 0.42s cubic-bezier(0.2, 0.75, 0.25, 1);
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}
.registration-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dbe2dd;
  padding-bottom: 22px;
}
.registration-drawer header h2 {
  font-size: 38px;
  margin: 8px 0;
}
.registration-drawer header p {
  margin: 0;
  color: #687386;
}
.registration-drawer header button {
  border: 0;
  background: none;
  font-size: 36px;
  cursor: pointer;
}
.registration-section {
  padding: 28px 0 8px;
  border-bottom: 1px solid #dbe2dd;
}
.registration-section h3 {
  font-size: 20px;
  margin: 0;
}
.registration-field {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}
.registration-field > span {
  font-size: 13px;
  font-weight: 700;
}
.registration-field input:not([type="radio"]),
.registration-field textarea,
.registration-field select {
  width: 100%;
  border: 1px solid #d6ddd8;
  background: #fff;
  padding: 13px;
  font: inherit;
}
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radio-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6ddd8;
  background: #fff;
  padding: 13px;
}
.cascade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.goods-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 15px;
  align-items: center;
  border: 1px solid #d6ddd8;
  background: #fff;
  padding: 14px;
}
.file-drop {
  display: grid;
  gap: 10px;
  border: 1px dashed #9ba9a0;
  padding: 22px;
  margin: 28px 0;
}
.file-drop span {
  font-weight: 700;
}
.file-drop small {
  color: #687386;
}
.registration-submit {
  border: 0;
  background: #0d1420;
  color: #fff;
  padding: 18px 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  cursor: pointer;
}
.registration-submit:disabled {
  opacity: 0.5;
}
.registration-result {
  padding: 18px;
  background: #e5fff4;
  color: #087e5f;
  margin: 20px 0;
}
.registration-result.is-error {
  background: #fff0ed;
  color: #a3372c;
}
.field-hidden {
  display: none !important;
}
@media (max-width: 900px) {
  .activity-detail-hero {
    grid-template-columns: 1fr;
    padding: 45px 22px;
    background: #eef2ef;
  }
  .detail-index {
    display: none;
  }
  .detail-poster {
    order: -1;
    max-width: 420px;
    transform: rotate(-2deg);
  }
  .detail-title h1 {
    font-size: 48px;
  }
  .topic-frame {
    padding: 50px 0;
  }
  .topic-label {
    padding: 0 20px 18px;
    margin: 0 20px 30px;
  }
  .registration-drawer > section {
    padding: 24px 20px;
  }
  .radio-grid,
  .cascade-grid {
    grid-template-columns: 1fr;
  }
}
.result-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: 14px;
  padding: 11px 14px;
  background: #0d1420;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.result-action:hover {
  background: #00a47a;
}
.result-action-secondary {
  margin-top: 8px;
  background: transparent;
  border: 1px solid #8bcbb9;
  color: #087e5f;
}
.result-action-secondary:hover {
  background: #dff8ef;
  color: #087e5f;
}
.activity-detail {
  overflow-x: hidden;
  overflow-x: clip;
}
.registration-drawer header button {
  align-self: flex-start;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}
@media (max-width: 900px) {
  .detail-poster {
    transform: none;
  }
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.detail-actions > button {
  margin-top: 0;
}
.detail-actions .view-registration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 190px;
  padding: 17px 20px;
  border: 1px solid #0d1420;
  background: transparent;
  color: #0d1420;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.detail-actions button.view-registration {
  margin: 0;
}
.detail-actions .view-registration:hover {
  color: #fff;
  background: #00a47a;
  border-color: #00a47a;
}
.detail-actions .view-registration span {
  font-weight: 800;
}
.registration-records {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}
.registration-records.is-open {
  display: block;
}
.records-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 17, 0.68);
  backdrop-filter: blur(10px);
}
.registration-records > section {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100% - 36px));
  max-height: min(760px, calc(100% - 36px));
  overflow: auto;
  padding: 34px;
  background: #f8faf8;
  transform: translate(-50%, -50%);
  animation: records-in 0.4s cubic-bezier(0.2, 0.75, 0.25, 1);
}
@keyframes records-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }
}
.registration-records header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dbe2dd;
}
.registration-records header span {
  color: #00a47a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.registration-records header h2 {
  margin: 8px 0;
  font-size: 34px;
}
.registration-records header p {
  margin: 0;
  color: #687386;
}
.registration-records header button {
  align-self: flex-start;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
}
.records-list {
  display: grid;
  margin-top: 18px;
}
.records-list a {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 54px 20px 2px;
  color: inherit;
  border-bottom: 1px solid #dbe2dd;
  text-decoration: none;
  transition:
    padding 0.25s,
    background 0.25s;
}
.records-list a:hover {
  padding-left: 14px;
  background: #fff;
}
.records-list small {
  color: #00a47a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.records-list strong {
  font-size: 19px;
}
.records-list span {
  color: #687386;
  font-size: 12px;
}
.records-list i {
  position: absolute;
  right: 10px;
  top: 50%;
  font-size: 22px;
  font-style: normal;
  transform: translateY(-50%);
}
.records-new {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding: 17px 20px;
  color: #fff;
  background: #0d1420;
  text-decoration: none;
  font-weight: 800;
}
.records-new:hover {
  background: #00a47a;
}
@media (max-width: 900px) {
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .detail-actions > button,
  .detail-actions .view-registration {
    width: 100%;
    min-width: 0;
  }
  .registration-records > section {
    padding: 24px 20px;
  }
  .registration-records header h2 {
    font-size: 28px;
  }
}
.activity-stage {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  margin-top: 18px;
  padding: 8px 11px;
  border: 1px solid #cfd8d2;
  background: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.activity-stage i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a47a;
  box-shadow: 0 0 0 5px rgba(0, 164, 122, 0.1);
}
.activity-stage time {
  padding-left: 9px;
  border-left: 1px solid #cfd8d2;
  color: #687386;
  font-weight: 500;
}
.stage-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 240px;
  padding: 18px 24px;
  color: #fff;
  background: #0d1420;
  text-decoration: none;
  font-weight: 800;
}
.stage-primary:hover {
  background: #00a47a;
}
.stage-disabled {
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 14px 18px;
  border: 1px solid #cfd8d2;
  background: rgba(255, 255, 255, 0.54);
}
.stage-disabled b {
  font-size: 14px;
}
.stage-disabled small {
  color: #687386;
  font-size: 11px;
  font-weight: 400;
}
.stage-awards_open i,
.stage-certificate_open i {
  background: #4568ff;
  box-shadow: 0 0 0 5px rgba(69, 104, 255, 0.1);
}
.stage-judging i,
.stage-results_pending i {
  background: #f0a62d;
  box-shadow: 0 0 0 5px rgba(240, 166, 45, 0.12);
}
@media (max-width: 900px) {
  .activity-stage {
    flex-wrap: wrap;
  }
  .stage-primary,
  .stage-disabled {
    width: 100%;
  }
}
