/* FRESH_PAGE_1_19_CROSS_REALM_THRESHOLD_POLISH_ONLY - static CSS, no tracking, no fetch, no private-data writes */
/* FRESH_PAGE_1_29_LIVING_THRESHOLD_RESILIENCE_EXTENSION - static narrow/long-label hardening only */

html[data-fresh-page-1-19-cross-realm-threshold="true"] {
  --cr-ink: #f7efe2;
  --cr-soft: rgba(247, 239, 226, 0.78);
  --cr-dim: rgba(247, 239, 226, 0.58);
  --cr-line: rgba(231, 202, 137, 0.22);
  --cr-gold: #d8b66e;
  --cr-teal: #78c7bd;
  --cr-copper: #c98762;
  --cr-blue: #9bb7d6;
  --cr-panel: rgba(11, 14, 17, 0.86);
}

.cross-realm-threshold {
  --cr-accent: var(--cr-gold);
  --cr-second: var(--cr-teal);
  --cr-third: var(--cr-copper);
  --cr-tap-target: 3.6rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.86fr);
  gap: 1rem;
  width: min(100% - 2rem, 70rem);
  max-width: calc(100% - 2rem);
  margin: 1.15rem auto 1.65rem;
  padding: 0.95rem;
  color: var(--cr-ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cr-accent) 13%, transparent), transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, var(--cr-second) 12%, transparent), color-mix(in srgb, var(--cr-third) 9%, transparent)),
    var(--cr-panel);
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  box-shadow: 0 1rem 2.35rem rgba(3, 5, 8, 0.38);
  overflow: hidden;
  overflow-wrap: anywhere;
  isolation: isolate;
  contain: layout paint;
}

.cross-realm-threshold::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0.28rem;
  background: linear-gradient(180deg, var(--cr-accent), var(--cr-second), var(--cr-third));
}

.cross-realm-threshold__body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  align-self: center;
}

.cross-realm-threshold__kicker {
  margin: 0;
  color: var(--cr-second);
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cross-realm-threshold__title {
  margin: 0;
  color: #fff7e6;
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cross-realm-threshold__copy {
  margin: 0;
  color: var(--cr-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cross-realm-threshold__map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  min-width: 0;
  align-self: stretch;
  align-items: stretch;
}

.cross-realm-threshold__link {
  display: grid;
  inline-size: 100%;
  min-width: 0;
  min-height: max(4.65rem, var(--cr-tap-target));
  align-content: center;
  gap: 0.2rem;
  padding: 0.64rem 0.72rem;
  color: var(--cr-soft);
  text-decoration: none;
  border: 1px solid rgba(247, 239, 226, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  touch-action: manipulation;
}

.cross-realm-threshold__link:hover,
.cross-realm-threshold__link:focus-visible {
  color: #10151a;
  background: linear-gradient(135deg, var(--cr-accent), var(--cr-second));
  outline: 2px solid rgba(255, 247, 230, 0.72);
  outline-offset: 2px;
}

.cross-realm-threshold__link[aria-current="page"] {
  color: #10151a;
  background: linear-gradient(135deg, var(--cr-accent), var(--cr-second));
  border-color: rgba(255, 247, 230, 0.4);
  font-weight: 800;
}

.cross-realm-threshold__realm {
  color: inherit;
  max-inline-size: 100%;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cross-realm-threshold__hint {
  color: currentColor;
  max-inline-size: 100%;
  opacity: 0.72;
  font-size: 0.74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

[data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__kicker,
[data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__title,
[data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__copy,
[data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__realm,
[data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__hint {
  max-inline-size: 100%;
  text-wrap: wrap;
}

@supports (text-wrap: pretty) {
  [data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__title,
  [data-fresh-page-1-29-threshold-resilience="true"] .cross-realm-threshold__copy {
    text-wrap: pretty;
  }
}

.cross-realm-threshold--central {
  --cr-accent: #d8b66e;
  --cr-second: #78c7bd;
  --cr-third: #c98762;
}

.cross-realm-threshold--rank {
  --cr-accent: #9bb7d6;
  --cr-second: #d8b66e;
  --cr-third: #78c7bd;
}

.cross-realm-threshold--family {
  --cr-accent: #c98762;
  --cr-second: #8fb2a4;
  --cr-third: #d8b66e;
}

.world-shell-frame > .cross-realm-threshold {
  width: min(1180px, calc(100% - 28px));
}

.secret-room-frame > .cross-realm-threshold,
.state-main > .cross-realm-threshold {
  width: 100%;
}

@media (max-width: 820px) {
  .cross-realm-threshold {
    grid-template-columns: 1fr;
    width: min(100% - 1rem, 70rem);
    margin-block: 1rem 1.4rem;
    padding: 0.82rem;
  }
}

@media (max-width: 560px) {
  .cross-realm-threshold__map {
    grid-template-columns: 1fr;
  }

  .cross-realm-threshold__link {
    min-height: 3.8rem;
  }

  .cross-realm-threshold__title {
    font-size: 1.06rem;
  }

  .cross-realm-threshold__copy {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .cross-realm-threshold {
    width: min(100% - 0.6rem, 70rem);
    max-width: calc(100% - 0.6rem);
    gap: 0.72rem;
    padding: 0.68rem;
  }

  .cross-realm-threshold__body {
    gap: 0.42rem;
  }

  .cross-realm-threshold__link {
    min-height: var(--cr-tap-target);
    padding: 0.56rem 0.62rem;
  }

  .cross-realm-threshold__kicker {
    font-size: 0.68rem;
  }

  .cross-realm-threshold__title {
    font-size: 1rem;
  }

  .cross-realm-threshold__realm {
    font-size: 0.82rem;
  }

  .cross-realm-threshold__hint {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cross-realm-threshold,
  .cross-realm-threshold * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
