/* Portal / business-card landing page
   Basic 90s web look (GeoCities / Netscape era): beveled ridge borders,
   centered content, underlined links, no shadows or animations.
   Keeps the site palette (#6d105a purple) and the Uni 05_53 pixel font. */

body.portal {
  min-height: 100vh;
  margin: 0;
  padding: 30px 16px;
  background-color: #1f0419;
  background-image: url('/assets/images/portal/stars.png');
  background-repeat: repeat;
  image-rendering: pixelated;
  color: #ffffff;
  font-family: 'DM Mono', monospace;
  text-align: center;
  animation: portal-drift 90s linear infinite;
}

/* Slow diagonal drift of the starfield (distance is a multiple of the 160px tile
   so it loops seamlessly) */
@keyframes portal-drift {
  from { background-position: 0 0; }
  to { background-position: -160px -320px; }
}

@media (prefers-reduced-motion: reduce) {
  body.portal { animation: none; }
}

.card {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 24px;
  background-color: #7a0177;
  border: 4px ridge #f84ef8;
}

.card__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center 15%;
  border: 4px ridge #f84ef8;
}

.card__name {
  font-family: 'Uni 05_53', 'DM Mono', monospace;
  font-size: 1.6rem;
  font-weight: normal;
  margin: 14px 0 2px;
}

.card__handle {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #f9a8f9;
}

.card__role {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ffb3f0;
}

.card__role .role-item {
  white-space: nowrap;
}

/* Separators always reserve space; portal-separators.js hides the ones at line
   edges via visibility so the layout (and wrapping) never shifts. */
.card__role .role-sep {
  margin: 0 10px;
  color: #ffb3f0;
}

.card__role .role-sep.is-hidden {
  visibility: hidden;
}

.card__bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  text-align: left;
}

.card__rule {
  border: none;
  border-top: 2px groove #f84ef8;
  margin: 16px 0;
}

.card__socials {
  margin-top: 16px;
}

.card__socials a {
  color: #ff6bff;
  font-size: 1.4rem;
  margin: 0 8px;
}

.card__socials a:hover {
  color: #ffffff;
}

/* Plain text link into the full site, anchored to the card's upper-right */
.portal-enter {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #ff6bff;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}

/* 90s-style 88x31 web badges below the card */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 26px auto 0;
}

.badge {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}

/* SomaFM Groove Salad play/pause toggle, anchored to the card's upper-left
   (mirrors .portal-enter: same top, same size, equal horizontal inset) */
.portal-play {
  position: absolute;
  top: 10px;
  left: 12px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #ff6bff;
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

/* Pause state (playing): tighten the two bars so the width matches play/pi */
.portal-play[aria-pressed="true"] {
  letter-spacing: -4px;
}
