/* ==========================================================================
   YAHCHEH COMPONENTS
   Buttons, icon buttons, social buttons, cards, navigation, portal overlay.
   Recreated from the Yahcheh UI sprite sheet using real HTML/CSS (no
   screenshots of the sprite are used as UI).
   ========================================================================== */

/* ---------- Buttons ---------- */
.yah-btn {
  --_fg: var(--yah-text);
  --_bg: transparent;
  --_border: var(--yah-border);
  --_glow: transparent;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--yah-radius-pill);
  border: 1px solid var(--_border);
  background: var(--_bg);
  color: var(--_fg);
  font: 600 0.78rem/1 var(--yah-font-body);
  letter-spacing: var(--yah-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--yah-transition-fast), border-color var(--yah-transition-fast),
    box-shadow var(--yah-transition-fast), background var(--yah-transition-fast);
}

/* diamond accent tick, echoes the sprite sheet's button ornaments */
.yah-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 6px;
  height: 6px;
  background: var(--yah-gold);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity var(--yah-transition-fast);
}

.yah-btn:hover,
.yah-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--_border), 0 10px 30px var(--_glow);
}

.yah-btn:hover::after,
.yah-btn:focus-visible::after {
  opacity: 1;
}

.yah-btn:active {
  transform: translateY(0);
}

.yah-btn[disabled],
.yah-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.yah-btn--primary {
  --_fg: var(--yah-bg);
  --_bg: linear-gradient(135deg, var(--yah-gold), var(--yah-gold-bright));
  --_border: var(--yah-gold);
  --_glow: var(--yah-glow);
  background: var(--_bg);
  font-weight: 700;
}

.yah-btn--secondary {
  --_border: var(--yah-border);
  --_glow: var(--yah-glow);
  background: rgba(255, 255, 255, 0.02);
}

.yah-btn--ghost {
  --_border: transparent;
  background: transparent;
}

.yah-btn--ghost:hover {
  --_border: var(--yah-border);
}

.yah-btn--gold {
  --_fg: var(--yah-gold-bright);
  --_border: var(--yah-gold-dim);
  --_glow: var(--yah-glow);
}

.yah-btn--dark {
  --_fg: var(--yah-text);
  --_bg: var(--yah-surface);
  --_border: var(--yah-border);
}

.yah-btn--cosmic {
  --_border: rgba(127, 169, 232, 0.4);
  --_glow: rgba(127, 169, 232, 0.35);
}

.yah-btn--ancient {
  --_border: rgba(201, 138, 63, 0.45);
  --_glow: rgba(201, 138, 63, 0.35);
}

.yah-btn--psychedelic {
  --_border: rgba(194, 57, 179, 0.45);
  --_glow: rgba(41, 196, 217, 0.35);
}

/* ---------- Icon buttons ---------- */
.yah-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--yah-border);
  background: var(--yah-surface);
  color: var(--yah-gold);
  cursor: pointer;
  transition: box-shadow var(--yah-transition-fast), border-color var(--yah-transition-fast),
    color var(--yah-transition-fast), transform var(--yah-transition-fast);
}

.yah-icon-btn:hover,
.yah-icon-btn:focus-visible {
  color: var(--yah-gold-bright);
  border-color: var(--yah-gold);
  box-shadow: 0 0 0 1px var(--yah-gold), 0 0 22px var(--yah-glow);
  transform: translateY(-1px);
}

.yah-icon-btn .yah-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Social buttons ---------- */
.yah-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--yah-border);
  background: var(--yah-surface);
  color: var(--yah-muted);
  transition: color var(--yah-transition-fast), border-color var(--yah-transition-fast),
    box-shadow var(--yah-transition-fast);
}

.yah-social:hover,
.yah-social:focus-visible {
  color: var(--yah-gold-bright);
  border-color: var(--yah-gold);
  box-shadow: 0 0 18px var(--yah-glow);
}

.yah-social .yah-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Listen Everywhere ---------- */
.yah-listen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Cards ---------- */
.yah-card {
  position: relative;
  border: 1px solid var(--yah-border);
  border-radius: var(--yah-radius-lg);
  background: var(--yah-surface);
  overflow: hidden;
  transition: transform var(--yah-transition-slow), box-shadow var(--yah-transition-slow),
    border-color var(--yah-transition-slow);
}

.yah-card:hover {
  transform: translateY(-4px);
  border-color: var(--yah-gold-dim);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 30px var(--yah-glow);
}

.yah-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, var(--yah-grad-1), var(--yah-grad-3));
}

.yah-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--yah-transition-slow);
}

.yah-card:hover .yah-card__media img {
  transform: scale(1.06);
}

.yah-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 100%, rgba(0, 0, 0, 0.6), transparent 60%);
  opacity: 0;
  transition: opacity var(--yah-transition-slow);
}

.yah-card:hover .yah-card__media::after {
  opacity: 1;
}

.yah-card__body {
  padding: 22px 22px 24px;
}

.yah-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yah-gold);
  letter-spacing: var(--yah-tracking-wide);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.yah-card__body h3 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.yah-card__body p {
  color: var(--yah-muted);
  line-height: 1.7;
}

.yah-card__meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--yah-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Navigation ---------- */
.yah-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--yah-z-nav);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 26px;
  border-radius: var(--yah-radius-pill);
  border: 1px solid var(--yah-border);
  background: rgba(3, 5, 11, 0.55);
  backdrop-filter: blur(18px);
  transition: padding var(--yah-transition-slow), gap var(--yah-transition-slow),
    background var(--yah-transition-slow), box-shadow var(--yah-transition-slow),
    top var(--yah-transition-slow);
  width: min(1120px, calc(100% - 32px));
  justify-content: space-between;
}

.yah-nav.is-compact {
  top: 12px;
  padding: 8px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  background: rgba(3, 5, 11, 0.78);
}

.yah-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--yah-text);
  font-family: var(--yah-font-display);
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.yah-nav__brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--yah-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yah-gold);
  font-size: 0.7rem;
}

.yah-nav__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yah-nav__links a {
  color: var(--yah-muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: var(--yah-tracking-wide);
  text-transform: uppercase;
  transition: color var(--yah-transition-fast);
}

.yah-nav__links a:hover,
.yah-nav__links a:focus-visible {
  color: var(--yah-gold-bright);
}

.yah-nav__links a[aria-current="page"] {
  color: var(--yah-gold-bright);
}

.yah-nav__toggle {
  display: none;
}

.yah-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.yah-nav__account {
  display: inline-flex;
  visibility: visible;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--yah-gold-bright);
}

.yah-nav__account svg {
  width: 20px;
  height: 20px;
}

.yah-nav__search svg {
  width: 19px;
  height: 19px;
}

.yah-nav__account img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yah-nav__account-initial,
.yah-account-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yah-gold-dim), var(--yah-accent));
  color: var(--yah-bg);
  font-family: var(--yah-font-display);
  font-weight: 700;
}

.yah-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--yah-z-nav) - 1);
  background: transparent;
}

.yah-account-menu {
  position: fixed;
  z-index: calc(var(--yah-z-nav) + 6);
  width: min(330px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--yah-border);
  border-radius: var(--yah-radius-lg);
  background: color-mix(in srgb, var(--yah-bg) 90%, transparent);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 30px var(--yah-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--yah-transition-fast), transform var(--yah-transition-fast),
    visibility 0s linear var(--yah-transition-fast);
}

.yah-account-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity var(--yah-transition-fast), transform var(--yah-transition-fast);
}

.yah-account-menu__title {
  padding: 12px 14px 8px;
  margin: 0;
  color: var(--yah-gold);
  font: 600 0.7rem/1 var(--yah-font-body);
  letter-spacing: var(--yah-tracking-wide);
  text-transform: uppercase;
}

.yah-account-menu__identity,
.yah-account-menu__link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: calc(var(--yah-radius) + 4px);
  background: transparent;
  color: var(--yah-text);
  padding: 11px 12px;
  font: 500 0.88rem/1.25 var(--yah-font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--yah-transition-fast), color var(--yah-transition-fast);
}

.yah-account-menu__identity:hover,
.yah-account-menu__identity:focus-visible,
.yah-account-menu__link:hover,
.yah-account-menu__link:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--yah-gold-bright);
  outline: none;
}

.yah-account-menu__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

.yah-account-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yah-account-menu__name {
  display: grid;
  gap: 3px;
}

.yah-account-menu__name small {
  color: var(--yah-muted);
}

.yah-account-menu__separator {
  height: 1px;
  margin: 7px 6px;
  background: var(--yah-border);
}

.yah-account-menu__logout {
  color: #e98a8a;
}

.yah-account-menu__close {
  display: none;
}

.yah-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--yah-z-nav) + 8);
  background: rgba(1, 3, 8, 0.72);
  backdrop-filter: blur(7px);
}

.yah-search {
  position: fixed;
  top: clamp(82px, 12vh, 142px);
  left: 50%;
  z-index: calc(var(--yah-z-nav) + 9);
  width: min(690px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 108px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--yah-border);
  border-radius: var(--yah-radius-lg);
  background: color-mix(in srgb, var(--yah-bg) 94%, transparent);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58), 0 0 56px var(--yah-glow);
  transform: translateX(-50%);
}

.yah-search[hidden],
.yah-search-backdrop[hidden] {
  display: none;
}

body.yah-search-open {
  overflow: hidden;
}

.yah-search__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.yah-search__eyebrow,
.yah-search-result__category {
  margin: 0 0 7px;
  color: var(--yah-gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: var(--yah-tracking-wide);
  text-transform: uppercase;
}

.yah-search h2 {
  margin: 0;
  color: var(--yah-text);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.yah-search__form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.yah-search__form input {
  min-width: 0;
  padding: 14px 82px 14px 16px;
  border: 1px solid var(--yah-border);
  border-radius: var(--yah-radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--yah-text);
  font: inherit;
}

.yah-search__form input:focus-visible,
.yah-portal__search:focus-visible {
  outline: 2px solid var(--yah-gold-bright);
  outline-offset: 3px;
}

.yah-search__clear {
  position: absolute;
  right: 94px;
  top: 50%;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--yah-muted);
  font: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.yah-search__submit {
  border: 1px solid var(--yah-gold-dim);
  border-radius: var(--yah-radius);
  background: linear-gradient(135deg, var(--yah-gold-dim), var(--yah-gold));
  color: var(--yah-bg);
  padding: 0 18px;
  font: 600 0.7rem/1 var(--yah-font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.yah-search__status {
  min-height: 1.5em;
  margin: 18px 0 10px;
  color: var(--yah-muted);
  line-height: 1.5;
}

.yah-search__results {
  display: grid;
  gap: 8px;
}

.yah-search-result {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--yah-radius);
  color: var(--yah-text);
  text-decoration: none;
  transition: border-color var(--yah-transition-fast), background var(--yah-transition-fast);
}

.yah-search-result--profile {
  grid-template-columns: 46px 1fr;
  align-items: center;
  column-gap: 12px;
}

.yah-search-result__avatar {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--yah-border);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yah-gold-dim), var(--yah-accent));
  color: var(--yah-bg);
  font-family: var(--yah-font-display);
  font-weight: 700;
}

.yah-search-result__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yah-search-result__details {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.yah-search-result__details .yah-search-result__category {
  margin: 0;
}

.yah-search-result__username {
  color: var(--yah-gold);
  font-size: 0.78rem;
}

.yah-search-result:hover,
.yah-search-result:focus-visible {
  border-color: var(--yah-border);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.yah-search-result__excerpt {
  color: var(--yah-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .yah-nav__links {
    display: none;
  }
  .yah-nav__toggle {
    display: inline-flex;
  }

  .yah-account-menu.is-mobile {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    padding: 88px 20px 30px;
    border-radius: 0;
    border-width: 0 0 0 1px;
    transform: translateX(100%);
    transform-origin: right center;
  }

  .yah-account-menu.is-mobile.is-open {
    transform: translateX(0);
  }

  .yah-account-backdrop:not([hidden]) {
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(3px);
  }

  body.yah-account-menu-open {
    overflow: hidden;
  }

  .yah-account-menu.is-mobile .yah-account-menu__identity {
    margin-bottom: 18px;
    padding: 18px 12px;
  }

  .yah-account-menu.is-mobile .yah-account-menu__avatar {
    width: 62px;
    height: 62px;
  }

  .yah-account-menu.is-mobile .yah-account-menu__close {
    position: absolute;
    top: 22px;
    right: 20px;
    display: inline-flex;
    color: var(--yah-gold-bright);
    font-size: 1.8rem;
    line-height: 1;
  }

  .yah-search {
    top: 18px;
    max-height: calc(100vh - 36px);
  }
}

/* ---------- Empty / coming-soon states ---------- */
.yah-empty {
  padding: 28px 26px;
  border: 1px dashed var(--yah-border);
  border-radius: var(--yah-radius-lg);
  color: var(--yah-muted);
  font-style: italic;
  line-height: 1.7;
}

/* ---------- Release + tracklist ---------- */
.yah-release {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  border: 1px solid var(--yah-border);
  border-radius: var(--yah-radius-lg);
  background: var(--yah-surface);
  padding: 28px;
  overflow: hidden;
}

.yah-release__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--yah-radius);
  background: linear-gradient(160deg, var(--yah-grad-1), var(--yah-grad-3));
  border: 1px solid var(--yah-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yah-release__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yah-release__no-art {
  color: var(--yah-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 16px;
}

.yah-release__body h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

.yah-release__meta {
  color: var(--yah-muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.yah-release__world-note {
  color: var(--yah-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  border-left: 2px solid var(--yah-gold-dim);
  padding-left: 14px;
  margin: 16px 0;
}

.yah-release__actions {
  margin: 8px 0 6px;
}

.yah-release__copyright {
  color: var(--yah-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.yah-tracklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--yah-border);
}

.yah-tracklist__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--yah-border);
  transition: color var(--yah-transition-fast);
}

.yah-tracklist__item:hover {
  color: var(--yah-gold-bright);
}

.yah-tracklist__num {
  color: var(--yah-gold);
  font-variant-numeric: tabular-nums;
  width: 22px;
}

.yah-tracklist__title {
  flex: 1;
}

.yah-tracklist__duration {
  color: var(--yah-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

/* ---------- Spotify embed frame ---------- */
.yah-embed {
  border: 1px solid var(--yah-border);
  border-radius: var(--yah-radius-lg);
  background: var(--yah-surface);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.yah-embed iframe {
  width: 100%;
  border-radius: var(--yah-radius);
}

/* ---------- Story / about content ---------- */
.yah-story__section {
  max-width: 760px;
  margin-bottom: 34px;
}

.yah-story__section h3 {
  color: var(--yah-gold-bright);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.yah-story__section p {
  color: var(--yah-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .yah-release {
    grid-template-columns: 1fr;
  }
  .yah-release__media {
    max-width: 220px;
  }
}

/* ---------- Mobile portal overlay ---------- */
.yah-portal {
  position: fixed;
  inset: 0;
  z-index: var(--yah-z-portal);
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, var(--yah-grad-2) 0%, var(--yah-bg) 70%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity var(--yah-transition-slow), transform var(--yah-transition-slow),
    visibility 0s linear var(--yah-transition-slow);
}

.yah-portal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity var(--yah-transition-slow), transform var(--yah-transition-slow);
}

.yah-portal__ring {
  position: absolute;
  border: 1px solid var(--yah-border);
  border-radius: 50%;
  inset: 8%;
  animation: yah-portal-spin 40s linear infinite;
}

.yah-portal__ring--inner {
  inset: 22%;
  animation-direction: reverse;
  animation-duration: 30s;
}

@keyframes yah-portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.yah-portal__links {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.yah-portal__links a {
  text-decoration: none;
  color: var(--yah-text);
  font-family: var(--yah-font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--yah-transition-fast);
}

.yah-portal__search {
  border: 0;
  background: transparent;
  color: var(--yah-gold-bright);
  font: inherit;
  font-family: var(--yah-font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.yah-portal__links a:hover,
.yah-portal__links a:focus-visible {
  color: var(--yah-gold-bright);
}

.yah-portal__close {
  position: absolute;
  top: 26px;
  right: 26px;
}

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

/* Navigation overlays must cover persistent chat and player surfaces. */
.yah-portal{z-index:310}
.yah-account-backdrop{z-index:300}
.yah-account-menu{z-index:311;overflow-y:auto;max-height:calc(100dvh - 100px);overscroll-behavior:contain}
@media(max-width:1080px){
 .yah-portal{padding:80px 20px max(24px,env(safe-area-inset-bottom));overflow-y:auto;align-items:start;overscroll-behavior:contain}
 .yah-portal__links{width:100%;max-width:440px;gap:6px;margin:auto}
 .yah-portal__links a,.yah-portal__search{display:block;text-align:center;font-size:clamp(1.2rem,5vw,1.7rem);line-height:1.5;padding:8px 18px;min-height:44px}
 .yah-portal__ring{pointer-events:none}
 .yah-portal__close{position:fixed;top:max(18px,env(safe-area-inset-top));right:20px;width:44px;height:44px;z-index:1;background:var(--yah-bg)}
 .yah-account-menu.is-mobile{max-height:100dvh;padding:76px 16px max(24px,env(safe-area-inset-bottom))}
 .yah-account-menu.is-mobile .yah-account-menu__close{width:44px;height:44px;top:max(18px,env(safe-area-inset-top))}
}
.yah-search-backdrop{z-index:320}.yah-search{z-index:321}
@media(max-width:700px){.yah-search__close{width:44px;height:44px;flex-shrink:0}}
