.portal {
  max-width: 1060px;
  margin: auto;
  padding: 28px 26px 40px;
}
.portal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid #ebcddd;
  border-radius: 25px;
  background: linear-gradient(132deg, #fde8f2 8%, #f9d9ee 56%, #eee5ff 100%);
  box-shadow: var(--shadow);
}
.portal-intro {
  position: relative;
  z-index: 1;
  max-width: 80%;
}
.portal-hero h1 {
  font-size: clamp(2rem, 6vw, 4.15rem);
  line-height: 1.02;
}
.portal-hero p {
  margin-top: 12px;
  color: #5c4263;
}
.portal-unicorn, .portal-star {
  position: absolute;
  pointer-events: none;
}
.portal-unicorn {
  right: 9%;
  bottom: 15%;
  font-size: clamp(32px, 7vw, 68px);
  transform: rotate(8deg);
}
.portal-star {
  right: 19%;
  top: 19%;
  font-size: clamp(16px, 3vw, 30px);
  color: #a454a8;
}
.portal-list { margin-top: 26px; }
.portal-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.portal-list-heading h2 { font-size: clamp(1.3rem, 3.2vw, 2rem); }
.portal-archive-link { font-size: .88rem; }
#assessment-list { display: grid; gap: 14px; }
.assessment, .portal-empty {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.assessment {
  display: flex;
  align-items: center;
  gap: clamp(15px, 4vw, 38px);
  padding: 20px 24px;
}
.assessment-copy { flex: 1; min-width: 0; }
.assessment h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.045em; }
.assessment p { margin: 7px 0 14px; color: var(--muted); }
.assessment .assessment-meta {
  margin: 0 0 6px;
  color: #7c2858;
  font-size: .85rem;
  font-weight: 850;
}
.assessment-art {
  display: grid;
  place-items: center;
  width: min(37%, 290px);
  border-radius: 16px;
  background: linear-gradient(120deg, #fae4f1, #eee6fc);
}
.assessment-map { display: block; width: 100%; height: 170px; pointer-events: none; }
.portal-empty { padding: 24px; color: var(--muted); }
@media (max-width: 640px) {
  .portal { padding: 12px 10px 26px; }
  .portal-hero { border-radius: 20px; padding: 24px 16px; }
  .portal-intro { max-width: 82%; }
  .portal-unicorn { right: 5%; }
  .portal-star { right: 11%; top: 20%; }
  .portal-list { margin-top: 19px; }
}
@media (max-width: 560px) {
  .assessment { flex-direction: column; align-items: stretch; padding: 16px; }
  .assessment-art { width: 100%; }
  .assessment-map { height: 130px; }
}

.secret-door {
  position: absolute;
  z-index: 2;
  right: calc(19% + clamp(8px, 2vw, 24px));
  top: calc(19% - 22px);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
}
.secret-door span {
  position: relative;
  width: 11px;
  height: 16px;
  border: 1px solid #9b669b36;
  border-radius: 8px 8px 2px 2px;
  background: #f8deef20;
  pointer-events: none;
}
.secret-door span::after {
  position: absolute;
  top: 8px;
  right: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #9862a44d;
  content: "";
}
.secret-door:focus-visible span, .secret-door:active span {
  box-shadow: 0 0 12px 3px #fff9e6;
  border-color: #9862a4;
}
@media (max-width: 640px) {
  .secret-door { right: calc(11% + 2px); top: calc(20% - 23px); }
}
