.hysdai-root,
.hysdai-page {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

.hysdai-page #portalExperience {
  position: relative;
  inset: auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hysdai-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: max(25px, env(safe-area-inset-top)) clamp(20px, 3vw, 43px) 0;
}

.hysdai-wordmark {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 650;
  letter-spacing: .04em;
  text-shadow: 0 1px 12px #000;
  white-space: nowrap;
}

.hysdai-menu {
  display: flex;
  align-items: center;
  gap: clamp(.125rem, 1.2vw, 1rem);
  padding-inline: .375rem;
  border: 1px solid #d7c5a750;
  border-radius: 999px;
  background: #080b12b3;
}

.hysdai-menu a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: clamp(.375rem, 1.2vw, .75rem);
  border-radius: 999px;
  font-size: .875rem;
  white-space: nowrap;
}

.hysdai-menu a:hover { background: #ffffff1c; }

.hysdai-page .portal-copy h1 { overflow-wrap: anywhere; }
.hysdai-page .portal-subtitle { font-size: clamp(.875rem, 1.25vw, 1.125rem); }
.hysdai-page .portal-hud { position: absolute; }
.hysdai-page .portal-follow { font-size: .75rem; }

.hysdai-page #portalNext {
  justify-content: center;
  min-width: 6.8rem;
  min-height: 44px;
  font-size: .875rem;
}

.hysdai-page #portalPause { width: 44px; min-height: 44px; }
.hysdai-page .portal-controls button:disabled { cursor: default; opacity: .5; }

.hysdai-info {
  padding: clamp(3rem, 8vw, 7rem) clamp(22px, 6vw, 80px);
  background: #f4f1e9;
  color: #24221e;
}

.hysdai-info-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 66rem;
  margin-inline: auto;
}

.hysdai-description h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.25;
}

.hysdai-description p {
  margin-top: 1.15rem;
  color: #4a453d;
  font-size: 1.0625rem;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.hysdai-description .hysdai-preview {
  margin: 0 0 .8rem;
  color: #735728;
  font-size: .875rem;
}

.hysdai-details { border-top: 1px solid #d7cebc; }
.hysdai-details > div { padding-block: 1rem; border-bottom: 1px solid #d7cebc; }
.hysdai-details dt { margin-bottom: .3rem; color: #514a40; font-size: .875rem; }
.hysdai-details dd { font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.hysdai-details a { text-decoration: underline; text-underline-offset: .2em; }

.hysdai-footer {
  padding: 1.4rem 1.125rem max(1.4rem, env(safe-area-inset-bottom));
  border-top: 1px solid #d7cebc;
  background: #f4f1e9;
  color: #4a453d;
  font-size: .875rem;
  text-align: center;
}

.hysdai-footer a { display: inline-block; padding: .35rem; text-decoration: underline; text-underline-offset: .2em; }
.hysdai-info :focus-visible, .hysdai-footer :focus-visible { outline-color: #725519; }

@media (max-width: 680px) {
  .hysdai-topbar { padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
  .hysdai-info-inner { grid-template-columns: minmax(0, 1fr); }
  .hysdai-page .portal-world { flex-basis: 6rem; }
  .hysdai-page .portal-hud { gap: .75rem; }
  .hysdai-page #portalNext { min-width: 5.5rem; }
}
