.realm-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  width: min(100%, 111rem);
  margin-inline: auto;
  padding: .18rem clamp(.55rem, 2vw, 1.6rem) .64rem;
}
.realm-links > :is(a,button), .realm-player {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .38rem;
  min-height: 44px;
  min-width: 0;
  padding: .3rem .7rem;
  border: 1px solid #536c63;
  border-radius: .13rem .65rem .12rem .36rem;
  background: linear-gradient(135deg, #29403c, #15252e 65%);
  box-shadow: inset 0 0 0 2px #061a2059;
  color: #f8e8cc;
  font-size: .875rem;
  font-weight: 710;
  line-height: 1.15;
  text-decoration: none;
}
.realm-links > :is(a,button)::before {
  position: absolute;
  inset: .28rem auto .28rem .16rem;
  width: 2px;
  border-radius: 1rem;
  background: #8aa88a99;
  content: "";
}
.realm-links > :is(a,button):is(:hover,:focus-visible) {
  color: #fff4da;
  border-color: #cca674;
  background: linear-gradient(135deg, #725a42, #21403b 68%);
}
.realm-links > :is(a,button) > .icon { flex: 0 0 1.16rem; width: 1.16rem; height: 1.16rem; }
.realm-links [hidden] { display: none; }
.realm-player { max-width: min(16rem, 100%); color: #bcebd7; overflow-wrap: anywhere; }
.realm-links .realm-session { color: #b8f1da; border-color: #5b9484; background: linear-gradient(135deg,#30564a,#11292f); }
@media (max-width: 600px) {
  .realm-links { padding-inline: .55rem; }
  .realm-links > :is(a, button) { padding-inline: .48rem; }
  .realm-links > :is(a, button) > .icon { flex-basis: 1rem; width: 1rem; height: 1rem; }
  .realm-wide-label { display: none; }
}
@media (max-width: 430px) {
  .realm-links { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .22rem; }
  .realm-links > :is(a, button) {
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    gap: .13rem;
    padding-inline: .1rem;
  }
  .realm-links > :is(a, button) > .icon { flex-basis: auto; }
  .realm-player { grid-column: 1 / -1; justify-self: center; min-height: 1.75rem; }
}
