/*
 * NYA components for the web. Load after nya-tokens.css (website) or tokens.css (design system).
 * Every value comes from a token or from the Swift view it copies (named above each block).
 */

/* ------------------------------------------------------------------ base */

.nya, .nya-page {
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[class*="nya-"][hidden] { display: none !important; }
.nya-i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }
.nya :focus-visible, .nya-page :focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; }

/* Type helpers (Typography.swift) */
.nya-display-xl, .nya-display-l, .nya-display-m, .nya-display-s { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; color: var(--text-1); }
.nya-display-xl { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; }
.nya-display-l { font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; }
.nya-display-m { font-size: 28px; line-height: 1.14; letter-spacing: -0.01em; }
.nya-display-s { font-size: 22px; line-height: 1.27; letter-spacing: -0.01em; }
/* AccentHeadline: the closing phrase on its own line, in the second ink. */
.nya-accent { color: var(--accent-ink); display: block; }
.nya-on-dark .nya-accent { color: var(--text-on-dark-2); }
.nya-section { font: 700 20px/25px var(--font-sans); color: var(--text-1); margin: 0; }
.nya-dateline { font: 400 15px/20px var(--font-sans); color: var(--text-3); margin: 0; }
.nya-body { font: 400 15px/1.4 var(--font-sans); color: var(--text-2); margin: 0; }
.nya-label { font: 600 13px/18px var(--font-sans); color: var(--text-3); }

/* ------------------------------------------------------------------ mark and lockup (NYAMark.swift) */

.nya-lockup { display: inline-flex; align-items: center; gap: calc(var(--mark, 22px) * 0.5); color: inherit; }
.nya-lockup svg { width: var(--mark, 22px); height: var(--mark, 22px); }
.nya-lockup > span { font: 400 calc(var(--mark, 22px) * 0.72) / 1 var(--font-display); letter-spacing: 0.34em; margin-right: -0.34em; }

.nya-livemark { position: relative; display: inline-block; width: var(--lm, 16px); height: var(--lm, 16px); flex: none; color: inherit; }
.nya-livemark > span { position: absolute; inset: 0; display: block; }
.nya-livemark svg { width: 100%; height: 100%; display: block; }
.nya-livemark__lens, .nya-livemark__ring { opacity: 0; }
.nya-livemark.is-working .nya-livemark__woven { opacity: 0; }
.nya-livemark.is-working .nya-livemark__lens { opacity: 1; animation: nya-apart-l 1.96s ease-in-out infinite; }
.nya-livemark.is-working .nya-livemark__ring { opacity: 1; animation: nya-apart-r 1.96s ease-in-out infinite; }
@keyframes nya-apart-l { 50% { transform: translateX(calc(var(--lm, 16px) * -0.05)); } }
@keyframes nya-apart-r { 50% { transform: translateX(calc(var(--lm, 16px) * 0.05)); } }

/* ------------------------------------------------------------------ press, buttons (Components.swift, PlaceCard.swift, Haptics.swift) */

.nya-btn, .nya-btn--round, .nya-reply, .nya-answer-card, .nya-answerbar__cell {
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-press) var(--motion-press-ease), opacity var(--motion-press) var(--motion-press-ease), background-color 200ms ease, color 200ms ease;
}
.nya-btn:active, .nya-btn--round:active, .nya-reply:active, .nya-reply.is-pressed, .nya-answer-card:active, .nya-answerbar__cell:active { transform: scale(0.97); opacity: 0.88; }

.nya-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius-capsule);
  font: 600 15px/20px var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.nya-btn .nya-i { font-size: 14px; }
.nya-btn--primary { background: var(--inverse); color: var(--on-inverse); }
.nya-btn--soft { background: var(--fill-1); color: var(--text-1); }
.nya-btn--paper { background: var(--paper); color: var(--text-1); }
.nya-btn--sm { min-height: 44px; padding: 0 18px; }
.nya-btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.nya-btn--block { width: 100%; }
.nya-btn--round {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: inline-grid; place-items: center; background: var(--paper); color: var(--text-1); font-size: 17px;
}
/* Sign-in buttons: Google's own colours (GoogleSignInButton) */
.nya-btn--google { min-height: 54px; background: #ffffff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; font-weight: 500; font-size: 20px; }
.nya-btn--google-dark { min-height: 54px; background: #131314; color: #e3e3e3; box-shadow: inset 0 0 0 1px #8e918f; font-weight: 500; font-size: 20px; }

/* ------------------------------------------------------------------ glass (Liquid Glass, web stand-in) */

.nya-glass {
  background: var(--glass);
  color: var(--glass-ink);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 0.5px var(--hairline), var(--shadow-float);
}
@media (prefers-reduced-transparency: reduce) { .nya-glass { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Glass over photos and covers: always dark (nyaGlassOverMedia, DropsTicket, DropPill) */
.nya-pill-glass {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--radius-capsule);
  font: 600 13px/18px var(--font-sans); color: #fff; white-space: nowrap;
  background: rgba(10, 10, 11, 0.4);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.nya-pill-glass svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ pills and chips */

.nya-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-capsule); background: var(--paper); color: var(--text-1); font: 600 14px/1 var(--font-sans); border: 0; }
.nya-chip.is-on { background: var(--inverse); color: var(--on-inverse); }
/* ForYouStrip agreement chips */
.nya-fit-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--radius-capsule); font: 600 13px/1 var(--font-sans); color: var(--text-1); }
.nya-fit-chip .nya-i { font-size: 11px; }
.nya-fit-chip--match { background: color-mix(in srgb, var(--yes) 14%, transparent); }
.nya-fit-chip--match .nya-i { color: var(--yes); }
.nya-fit-chip--clash { background: color-mix(in srgb, #ff9500 14%, transparent); }
.nya-fit-chip--clash .nya-i { color: #ff9500; }
.nya-fit-chip--either { background: color-mix(in srgb, var(--text-3) 14%, transparent); }
/* RunBadge: from a run of 2 */
.nya-run { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border-radius: var(--radius-capsule); background: var(--streak); color: var(--obsidian); font: 400 12px/1 var(--font-sans); }
.nya-run .nya-i { font-size: 11px; }
.nya-promoted { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-capsule); font: 600 11px/1 var(--font-sans); color: var(--text-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-3) 60%, transparent); }
.nya-live { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/20px var(--font-sans); color: var(--text-1); }
.nya-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yes); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yes) 25%, transparent); animation: nya-halo 2.8s ease-in-out infinite; }
@keyframes nya-halo { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--yes) 12%, transparent); } }

/* ------------------------------------------------------------------ faces (Monogram, Avatar, Crowd) */

.nya-face {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--size, 34px); height: var(--size, 34px); border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mood, #8e8e93) 90%, #fff), var(--mood, #8e8e93));
  color: #fff; font-family: var(--font-sans); font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 clamp(1.5px, calc(var(--size, 34px) * 0.06), 3px) var(--ring, var(--paper));
}
.nya-face--more { background: var(--bone); color: var(--text-2); font-size: calc(var(--size) * 0.36); }
.nya-face__in { position: absolute; right: calc(var(--size) * -0.08); bottom: calc(var(--size) * -0.08); width: calc(var(--size) * 0.42); height: calc(var(--size) * 0.42); border-radius: 50%; background: var(--in); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ring, var(--paper)); }
.nya-face__in svg { width: 70%; height: 70%; }
.nya-crowd { display: inline-flex; align-items: center; }
.nya-crowd > .nya-face + .nya-face { margin-left: calc(var(--size) * -0.3); }

/* ------------------------------------------------------------------ covers (VenueCover, CoverAura) */

.nya-cover { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1; border-radius: var(--radius-xl); background: #222; container-type: inline-size; }
.nya-cover__field, .nya-aura canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nya-cover__grain { position: absolute; inset: 0; background-size: 77px 77px; opacity: 0.2; mix-blend-mode: overlay; pointer-events: none; }
.nya-cover__grain::after { content: ""; position: absolute; inset: 0; background: inherit; opacity: 0.35; mix-blend-mode: soft-light; }
.nya-cover__mark { position: absolute; left: 5.8cqw; top: 5.8cqw; width: 7.5cqw; height: 7.5cqw; min-width: 12px; min-height: 12px; }
.nya-cover__mark svg { width: 100%; height: 100%; display: block; }
.nya-cover__name {
  position: absolute; left: 6.4cqw; right: 6.4cqw; bottom: 6.4cqw;
  font: 700 min(9cqw, 30px)/1.08 var(--font-display); letter-spacing: -0.4px;
  text-shadow: 0 1px 2.5cqw rgba(0, 0, 0, 0.16);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nya-cover__name.is-dark { text-shadow: none; }
.nya-aura { position: absolute; inset: -10% -25% auto; height: 120%; overflow: hidden; pointer-events: none; z-index: 0;
  filter: blur(48px) saturate(1.15); opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, 0.35) 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, 0.35) 75%, transparent 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .nya-aura { opacity: 0.95; } }
:root[data-theme="night"] .nya-aura { opacity: 0.95; }

/* A shelf of covers (CoverShelf, Spotify): 148 squares, radius 16 */
.nya-shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.nya-shelf > * { flex: none; width: 148px; scroll-snap-align: start; }
.nya-shelf .nya-cover { border-radius: 16px; }
.nya-shelf b { display: block; font: 600 15px/20px var(--font-sans); margin-top: 8px; }
.nya-shelf small { font: 400 13px/18px var(--font-sans); color: var(--text-3); }

/* Kind tile (PlaceGlyph): symbol in the kind's tint on 16% of it */
.nya-kind-tile { display: inline-grid; place-items: center; width: var(--size, 46px); height: var(--size, 46px); border-radius: calc(var(--size, 46px) * 0.28); color: var(--tint); background: color-mix(in srgb, var(--tint) 16%, transparent); font-size: calc(var(--size, 46px) * 0.38); }

/* ------------------------------------------------------------------ the place card (PlaceCard.swift) */

.nya-place { display: flex; flex-direction: column; gap: 14px; color: var(--text-1); }
.nya-place__lead { display: flex; gap: 10px; align-items: center; }
.nya-place__lead > span:last-child { display: flex; flex-direction: column; }
.nya-place__lead b { font: 700 19px/24px var(--font-sans); }
.nya-place__lead b + span { font: 600 15px/20px var(--font-sans); color: var(--text-2); }
.nya-place__leadmark { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 14px; flex: none; }
.nya-place__pic { position: relative; }
.nya-place__cover { aspect-ratio: 4 / 3; border-radius: 22px; }
.nya-place__heart { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 17px; color: var(--text-1); background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.nya-place__heart.is-saved { color: var(--love); }
.nya-place__info { display: flex; flex-direction: column; gap: 6px; }
.nya-place__info p { margin: 0; }
.nya-place__kind { display: flex; align-items: center; gap: 6px; font: 400 15px/20px var(--font-sans); color: var(--text-2); }
.nya-place__kind .nya-i { color: var(--tint); font-size: 13px; }
.nya-place__facts { font: 400 15px/20px var(--font-sans); color: var(--text-2); }
.nya-place__facts .is-open { color: var(--yes); }
.nya-place__stars { font-size: 13px; }
.nya-place__stars > span { color: var(--text-3); }
.nya-place__reason { font: 400 15px/21px var(--font-sans); color: var(--text-1); }
.nya-place__actions { display: flex; gap: 10px; padding-top: 4px; }
.nya-place__going { flex: 1; }
.nya-place__going.is-going { background: var(--paper); color: var(--text-1); }

/* ------------------------------------------------------------------ lists (NYAInsetGroup, Settings rows) */

.nya-inset { border-radius: var(--radius-l); background: var(--paper); overflow: hidden; }
.nya-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; color: var(--text-1); text-decoration: none; position: relative; }
.nya-row + .nya-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 59px); height: 0.5px; background: var(--hairline); }
.nya-row__icon { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 15px; flex: none; }
.nya-row__words { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 11px 0; }
.nya-row__words b { font: 400 17px/22px var(--font-sans); }
.nya-row__words span { font: 400 13px/18px var(--font-sans); color: var(--text-3); }
.nya-row__value { font: 400 17px/22px var(--font-sans); color: var(--text-3); }
.nya-row .nya-chev { color: var(--text-3); opacity: 0.6; font-size: 13px; }
.nya-row:hover { background: var(--fill-3); }

/* Good to Know (ReasonList) */
.nya-reasons { display: flex; flex-direction: column; }
.nya-reasons > div { display: flex; gap: 14px; padding: 11px 0; position: relative; }
.nya-reasons > div + div::before { content: ""; position: absolute; top: 0; left: 31px; right: 0; height: 0.5px; background: var(--hairline); }
.nya-reasons .nya-i { color: var(--yes); font-size: 17px; margin-top: 2px; }
.nya-reasons b { display: block; font: 400 17px/22px var(--font-sans); }
.nya-reasons span { font: 400 13px/18px var(--font-sans); color: var(--text-3); }

/* ------------------------------------------------------------------ Ask NYA (NYABubble.swift, NYAReplyViews.swift, NYAIntelligence.swift) */

.nya-ask { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; max-width: 460px; min-height: 54px; font-family: var(--font-sans); }
.nya-ask-bar {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 54px; padding: 0 18px; border: 0; border-radius: var(--radius-capsule);
  font: 600 16px/1 var(--font-sans); cursor: pointer; text-align: left;
  transition: opacity 200ms ease, transform var(--motion-morph) var(--motion-morph-ease);
}
.nya-ask-bar .nya-livemark { --lm: 17px; }
.nya-ask-bar__title { flex: 0 0 auto; }
.nya-ask-bar__status { flex: 1; min-width: 0; font: 400 12px/1 var(--font-sans); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nya-ask-bar__up { margin-left: auto; font-size: 14px; opacity: 0.55; }
.nya-ask-panel {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: var(--radius-card); padding: 12px 18px 18px;
  display: flex; flex-direction: column; gap: 12px; color: var(--text-1);
  opacity: 0; transform: translateY(12px) scale(0.96); transform-origin: 50% 100%; pointer-events: none; visibility: hidden;
  transition: opacity 220ms ease, transform var(--motion-morph) var(--motion-morph-ease), visibility 0s linear var(--motion-morph);
}
.nya-ask.is-open .nya-ask-panel { position: relative; opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 220ms ease, transform var(--motion-morph) var(--motion-morph-ease); }
.nya-ask.is-open .nya-ask-bar { position: absolute; bottom: 0; opacity: 0; pointer-events: none; transform: scale(0.98); }
.nya-ask-panel__ground { position: absolute; inset: 0; border-radius: inherit; background: var(--panel); z-index: -1; }
.nya-ask-panel { isolation: isolate; }
.nya-ask-panel > :not(.nya-ask-panel__ground):not(.nya-edge) { position: relative; }
.nya-ask-panel__head { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-right: -12px; }
.nya-ask-panel__head .nya-livemark { --lm: 16px; }
.nya-ask-panel__scope { flex: 1; min-width: 0; font: 600 13px/18px var(--font-sans); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nya-ask-panel__btn { width: 44px; height: 44px; margin: -6px 0; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; font-size: 15px; cursor: pointer; border-radius: 50%; }
.nya-ask-panel__btn .nya-i { stroke-width: 2.4; }
.nya-ask-panel__talk { display: flex; flex-direction: column; gap: 16px; max-height: min(62vh, 520px); overflow-y: auto; }
.nya-ask-opener { margin: 0; font: 600 20px/25px var(--font-sans); color: var(--text-1); text-wrap: pretty; }
.nya-ask-asked { margin: 0 0 -8px; font: 400 13px/18px var(--font-sans); color: var(--text-3); }
.nya-ask-answer { display: flex; flex-direction: column; gap: 12px; animation: nya-arrive var(--motion-enter) var(--motion-enter-ease) both; }
.nya-ask-answer > * { animation: nya-arrive var(--motion-enter) var(--motion-enter-ease) both; }
.nya-ask-answer > :nth-child(2) { animation-delay: 70ms; }
.nya-ask-answer > :nth-child(3) { animation-delay: 140ms; }
.nya-ask-answer > :nth-child(4) { animation-delay: 210ms; }
.nya-ask-line { margin: 0; font: 400 17px/22px var(--font-sans); color: var(--text-1); text-wrap: pretty; }
@keyframes nya-arrive { from { opacity: 0; transform: translateY(6px) scale(0.985); filter: blur(4px); } }
.nya-ask-panel__field { display: flex; align-items: flex-end; gap: 10px; min-height: 48px; padding: 6px 8px 6px 16px; border-radius: var(--radius-field); background: var(--fill-1); }
.nya-ask-panel__field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 16px/21px var(--font-sans); color: var(--text-1); padding: 7px 0; }
.nya-ask-panel__field input::placeholder { color: var(--text-3); }
.nya-ask-panel__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--hairline-strong); }
.nya-ask-panel__send { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--inverse); color: var(--on-inverse); display: grid; place-items: center; cursor: pointer; font-size: 17px; }
.nya-ask-panel__send .nya-i { stroke-width: 2.6; }

/* Reply chips: before an answer, then quieter follow-ups (NYAReplyButton) */
.nya-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.nya-reply {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 11px 14px; border: 0; border-radius: var(--radius-xl);
  background: var(--fill-2); color: var(--text-1); font: 600 16px/20px var(--font-sans); text-align: left; cursor: pointer;
  animation: nya-chip-in 400ms var(--motion-morph-ease) both; animation-delay: calc(120ms + var(--i, 0) * 50ms);
}
.nya-reply .nya-i { font-size: 14px; color: var(--text-3); }
.nya-reply.is-quiet { min-height: 40px; padding: 8px 12px; font-size: 14px; background: var(--fill-3); }
.nya-reply.is-quiet .nya-i { font-size: 13px; }
@keyframes nya-chip-in { from { opacity: 0; transform: translateY(6px); } }

/* The answer's place card (Apple Maps) and its info row (App Store) */
.nya-answer-card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--radius-l); background: var(--fill-1); color: inherit; text-decoration: none; }
.nya-answer-card__top { display: flex; align-items: center; gap: 12px; }
.nya-answer-card__thumb { width: 56px; height: 56px; flex: none; border-radius: var(--radius-s); aspect-ratio: 1; }
.nya-answer-card__words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nya-answer-card__words b { font: 600 17px/22px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nya-answer-card__words span { font: 400 13px/18px var(--font-sans); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nya-answer-card__chev { color: var(--text-3); opacity: 0.6; font-size: 13px; }
.nya-metrics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.nya-metrics__cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 6px; position: relative; min-width: 0; }
.nya-metrics__cell + .nya-metrics__cell::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 0.5px; background: var(--hairline-strong); }
.nya-metrics__cell b { font: 600 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nya-metrics__cell span { font: 400 12px/16px var(--font-sans); color: var(--text-3); white-space: nowrap; }
.nya-offers { display: flex; flex-wrap: wrap; gap: 8px; }
.nya-links { display: flex; flex-direction: column; }
.nya-links a { display: flex; align-items: center; gap: 4px; min-height: 36px; font: 400 15px/20px var(--font-sans); color: var(--text-1); text-decoration: none; }
.nya-links .nya-i { font-size: 11px; color: var(--text-3); }

/* Thinking: grey lines, a wash of NYA's colours passing along each, a beat behind the one above (NYAThinking) */
.nya-think { display: flex; flex-direction: column; gap: 11px; padding: 6px 0; }
.nya-think > span { position: relative; display: block; height: 10px; width: calc(var(--w) * 100%); border-radius: 5px; background: var(--think-line); overflow: hidden; }
.nya-think > span::after {
  content: ""; position: absolute; top: -6px; bottom: -6px; left: 0; width: 70%;
  background: linear-gradient(90deg, transparent 0%, var(--think-blue) 25%, var(--think-violet) 45%, var(--think-pink) 65%, transparent 100%);
  filter: blur(6px); opacity: 0.45;
  animation: nya-wash 3.57s linear infinite; animation-delay: calc(var(--i) * 0.22s);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .nya-think > span::after { opacity: 0.6; } }
:root[data-theme="night"] .nya-think > span::after { opacity: 0.6; }
@keyframes nya-wash { from { transform: translateX(-96.4%); } to { transform: translateX(182.1%); } }

/* The live edge: the panel's rim alive while NYA works (NYAIntelligenceEdge). Three rings turning against each other. */
@property --nya-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.nya-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 1.5s ease-out; z-index: 2; }
.nya-edge.is-on { opacity: 1; transition: opacity 0.5s ease-in; }
.nya-edge > i {
  position: absolute; inset: 0; border-radius: inherit;
  background: conic-gradient(from var(--nya-turn), var(--think-blue), var(--think-violet), var(--think-pink), var(--think-orange), var(--think-violet), var(--think-blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: nya-turn 7.2s linear infinite;
}
.nya-edge > i:nth-child(1) { padding: 14px; inset: -7px; filter: blur(20px); opacity: 0.5; animation-duration: 11.25s; }
.nya-edge > i:nth-child(2) { padding: 5px; inset: -2.5px; filter: blur(6px); opacity: 0.5; animation-duration: 8.2s; animation-direction: reverse; }
.nya-edge > i:nth-child(3) { padding: 1.5px; opacity: 0.75; }
@keyframes nya-turn { to { --nya-turn: 360deg; } }

/* ------------------------------------------------------------------ the Drop (DropCard.swift): fixed dark, Apple Invites */

.nya-drop { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--drop-card); color: var(--text-on-dark-1); color-scheme: dark; max-width: 400px; font-family: var(--font-sans); }
.nya-drop__lens { position: relative; aspect-ratio: 5 / 4; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); }
.nya-drop__lens img, .nya-drop__field { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.nya-drop__pill { position: absolute; top: 14px; left: 14px; z-index: 2; }
.nya-drop__pill svg { width: 13px; height: 13px; }
.nya-drop__fold { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.nya-drop__fold .nya-i { width: 28px; height: 28px; padding: 8px; box-sizing: border-box; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hairline-on-dark); background: rgba(0,0,0,.25); }
.nya-drop__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 14px 14px; margin-top: -70px; text-align: center; }
.nya-drop__faces { display: flex; }
.nya-drop__faces .nya-face + .nya-face { margin-left: -8px; }
.nya-drop__count { margin: -6px 0 0; font: 400 13px/18px var(--font-sans); color: var(--text-on-dark-2); }
.nya-drop__title { margin: 0; font: 700 28px/32px var(--font-display); letter-spacing: -0.28px; text-wrap: balance; }
.nya-drop__title em { font-style: normal; color: var(--text-on-dark-2); }
.nya-drop__title span { display: block; font: 400 15px/20px var(--font-sans); letter-spacing: 0; color: var(--text-on-dark-2); margin-top: 6px; }
.nya-answerbar { display: flex; gap: 4px; padding: 4px; width: 100%; border-radius: var(--radius-capsule); background: var(--drop-track); }
.nya-answerbar__cell { flex: 1; min-height: 54px; border: 0; border-radius: var(--radius-capsule); background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 13px/16px var(--font-sans); cursor: pointer; transition: background-color 300ms var(--motion-pop-ease), color 200ms ease, transform var(--motion-press) var(--motion-press-ease); }
.nya-answerbar__cell .nya-i { font-size: 17px; stroke-width: 2.4; }
.nya-answerbar__cell.is-on { background: var(--linen); color: var(--obsidian); }
.nya-answerbar__cell.is-on.is-yes .nya-i { color: var(--yes); }
.nya-drop__panel { width: 100%; padding: 16px; border-radius: var(--radius-xl); background: var(--drop-panel); text-align: left; display: flex; flex-direction: column; gap: 4px; }
.nya-drop__panel b { font: 600 12px/16px var(--font-sans); color: var(--text-on-dark-2); }
.nya-drop__panel span { font: 400 15px/21px var(--font-sans); color: var(--linen); }

/* ------------------------------------------------------------------ Night Sign (TasteCard.swift) */

.nya-sign { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4; border-radius: 22px; color: #fff; container-type: inline-size; font-family: var(--font-sans); max-width: 360px; }
.nya-sign.is-story { aspect-ratio: 9 / 16; border-radius: 0; }
.nya-sign__field { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.nya-sign__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 25%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.45)); }
.nya-sign__ghost { position: absolute; width: 95cqw; left: calc(86cqw - 47.5cqw); top: 50%; transform: translateY(-50%); opacity: 0.09; color: #fff; }
.nya-sign__ghost svg { width: 100%; display: block; }
.nya-sign__top { position: absolute; top: 7.5cqw; left: 7.5cqw; right: 7.5cqw; display: flex; align-items: center; justify-content: space-between; }
.nya-sign__top .nya-lockup { --mark: 5cqw !important; }
.nya-sign__no { display: inline-flex; align-items: center; min-height: 7.2cqw; padding: 0 2.6cqw; border-radius: 99px; background: rgba(255,255,255,.18); font: 700 3.6cqw/1 var(--font-sans); }
.nya-sign__foot { position: absolute; left: 7.5cqw; right: 7.5cqw; bottom: 7.5cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.nya-sign__owner { font: 600 4.2cqw/1.2 var(--font-sans); opacity: 0.8; }
.nya-sign__name { margin: 0; font: 800 13.9cqw/0.95 var(--font-display); letter-spacing: -0.028em; text-wrap: balance; }
.nya-sign__tag { margin: 0; font: 600 4.7cqw/1.25 var(--font-sans); opacity: 0.9; }
.nya-sign__with { display: flex; flex-direction: column; margin-top: 2cqw; }
.nya-sign__with span { font: 400 3.6cqw/1.3 var(--font-sans); opacity: 0.75; }
.nya-sign__with b { font: 700 4.4cqw/1.3 var(--font-sans); }
.nya-sign hr { border: 0; height: 1px; background: rgba(255,255,255,.3); margin: 2cqw 0 0; width: 100%; }
.nya-sign__ask { display: flex; justify-content: space-between; font: 400 3.6cqw/1.3 var(--font-sans); }

/* ------------------------------------------------------------------ School (SchoolHype, SchoolRedCover, SchoolFirstDrop) */

.nya-school-hand { position: relative; height: 226px; width: 100%; max-width: 420px; }
.nya-school-hand.has-red { height: 196px; }
.nya-school-hand__glow { position: absolute; left: 50%; top: calc(50% + 10px); width: 260px; height: 150px; transform: translate(-50%, -50%); border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; }
.nya-school-hand__card {
  position: absolute; left: 50%; top: 50%; width: 128px; height: 164px; margin: -82px 0 0 -64px; border-radius: 22px;
  animation: nya-float 7s ease-in-out infinite;
}
.nya-school-hand__card > .nya-cover, .nya-school-red { width: 100%; height: 100%; border-radius: 22px; aspect-ratio: auto; }
.nya-school-hand__card.is-front { z-index: 3; --x: 0px; --y: -12px; --r: 0deg; --s: 1; --f: 4px; box-shadow: 0 14px 44px rgba(0,0,0,.3); }
.nya-school-hand__card.is-left { z-index: 2; --x: -84px; --y: 6px; --r: -12deg; --s: 0.84; --f: 5px; animation-duration: 6.2s; animation-delay: -1.9s; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.nya-school-hand__card.is-right { z-index: 2; --x: 84px; --y: 6px; --r: 12deg; --s: 0.84; --f: 5px; animation-duration: 7.8s; animation-delay: -3.4s; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.nya-school-hand__card { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s)); }
@keyframes nya-float {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s)); }
  50% { transform: translate(var(--x), calc(var(--y) - var(--f))) rotate(var(--r)) scale(var(--s)); }
}
.nya-school-hand__day {
  position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px;
  font: 600 11px/1 var(--font-sans); color: #fff; background: rgba(40, 40, 44, 0.45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nya-school-hand__day .nya-i { font-size: 10px; }
.is-left .nya-school-hand__day { left: 10px; }
.is-front .nya-school-hand__day, .is-right .nya-school-hand__day { right: 10px; }
.nya-school-hand__seal {
  position: absolute; left: 50%; top: calc(50% + 96px); transform: translate(-50%, -50%); z-index: 10;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; white-space: nowrap;
  font: 600 13px/1 var(--font-sans); color: #fff; background: rgba(40, 40, 44, 0.55); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.nya-school-hand__seal .nya-i { font-size: 12px; }
.nya-school-red { position: relative; overflow: hidden; container-type: inline-size; background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3)); }
.nya-school-red::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(255,255,255,.22), transparent 110cqw); mix-blend-mode: soft-light; }
.nya-school-red .nya-cover__mark { color: rgba(255,255,255,.92); }
.nya-school-red b { position: absolute; left: 7cqw; bottom: 7cqw; color: #fff; font: 700 min(12cqw, 30px)/1.05 var(--font-display); }
.nya-school-promo { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.nya-school-promo h3 { margin: 0; font: 700 26px/31px var(--font-display); color: var(--text-1); text-wrap: balance; }
.nya-school-promo p { margin: -10px 0 0; font: 400 15px/20px var(--font-sans); color: var(--text-2); }

/* ------------------------------------------------------------------ Today's top (NYAFoldingTop, DiscoverTabs) */

.nya-top { display: flex; flex-direction: column; gap: 4px; }
.nya-top__bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.nya-tabs { display: flex; gap: 26px; position: relative; padding-bottom: 9px; overflow-x: auto; scrollbar-width: none; }
.nya-tabs button { border: 0; background: none; padding: 0; cursor: pointer; font: 600 17px/22px var(--font-sans); color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: color 250ms ease; }
.nya-tabs button[aria-selected="true"] { color: var(--text-1); }
.nya-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; height: 3px; border-radius: 2px; background: var(--text-1); width: var(--tab-w, 40px); transform: translateX(var(--tab-x, 0)); left: 0; transition: transform var(--motion-enter) var(--motion-enter-ease), width var(--motion-enter) var(--motion-enter-ease); }
.nya-tabs .is-city .nya-i { color: var(--streak); }
.nya-tabs .is-school { color: #fff; background: var(--school); height: 26px; padding: 0 10px; border-radius: 99px; font-size: 16px; font-weight: 700; }

/* ------------------------------------------------------------------ fit (ForYouStrip, FitLine) */

.nya-for-you { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--paper); }
.nya-for-you__pair { position: relative; width: 60px; height: 38px; flex: none; }
.nya-for-you__pair > * { position: absolute; top: 0; }
.nya-for-you__pair .nya-cover { width: 38px; height: 38px; border-radius: 50%; left: 22px; }
.nya-for-you__pair .nya-face { left: 0; z-index: 1; box-shadow: 0 0 0 3px var(--paper); }
.nya-for-you b { display: block; font: 700 19px/24px var(--font-sans); }
.nya-for-you span { font: 400 14px/19px var(--font-sans); color: var(--text-2); }

/* ------------------------------------------------------------------ skeleton (Skeleton.swift) */

.nya-skel { position: relative; overflow: hidden; background: var(--paper); border-radius: var(--radius-s); }
.nya-skel::after { content: ""; position: absolute; inset: 0; width: max(55%, 160px); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: nya-sheen 1.9s cubic-bezier(.45,0,.55,1) infinite; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .nya-skel { background: rgba(255,255,255,.08); } :root:not([data-theme="day"]) .nya-skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); } }
:root[data-theme="night"] .nya-skel { background: rgba(255,255,255,.08); }
:root[data-theme="night"] .nya-skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes nya-sheen { from { transform: translateX(-100%); } 66%, to { transform: translateX(260%); } }

/* ------------------------------------------------------------------ notification banner (first run's mock) */

.nya-banner { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--radius-field); max-width: 380px; }
.nya-banner__icon { width: 38px; height: 38px; border-radius: 9px; background: #000; color: #fff; display: grid; place-items: center; padding: 7px; flex: none; }
.nya-banner__icon svg { width: 100%; height: 100%; }
.nya-banner__words { flex: 1; min-width: 0; }
.nya-banner__words header { display: flex; justify-content: space-between; font: 600 15px/20px var(--font-sans); }
.nya-banner__words header small { font: 400 13px/20px var(--font-sans); color: var(--text-3); }
.nya-banner__words p { margin: 0; font: 400 15px/20px var(--font-sans); opacity: 0.85; }

/* ------------------------------------------------------------------ motion: respect the setting */

@media (prefers-reduced-motion: reduce) {
  .nya-school-hand__card, .nya-think > span::after, .nya-edge > i, .nya-livemark > span, .nya-live::before, .nya-skel::after { animation: none !important; }
  .nya-reply, .nya-ask-answer, .nya-ask-answer > * { animation-duration: 1ms !important; }
}

/* ------------------------------------------------------------------ Ask NYA, the showcase (marketing pages: insidenya.com, ads)
   No glass box and no shadow: one fine line in NYA's colours wraps the panel exactly, and behind it the same colours
   glow unevenly (blue top left, pink right, orange below, violet low left), breathing and drifting. It plays itself
   (NYA.ask with show: true), so it is always working and the light is always on. Give the parent room: the glow
   spills about 40px past the panel; don't clip it (overflow-x: clip on the section, never overflow: hidden). */
.nya-ask--show { pointer-events: none; user-select: none; }
.nya-ask--show .nya-ask-panel.nya-glass { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nya-ask--show .nya-ask-panel__ground { background: var(--ground); }
.nya-ask--show .nya-ask-panel__btn { visibility: hidden; }
.nya-ask--show .nya-edge { opacity: 1; }
.nya-ask--show .nya-edge > i:nth-child(1), .nya-ask--show .nya-edge > i:nth-child(2) { display: none; }
.nya-ask--show .nya-edge > i:nth-child(3) { padding: 1.5px; inset: 0; opacity: 1; filter: none; }
.nya-ask--show .nya-ask-panel::before {
  content: ""; position: absolute; inset: -36px; border-radius: 48px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 42% at 12% 18%, var(--think-blue), transparent 70%),
    radial-gradient(34% 40% at 92% 30%, var(--think-pink), transparent 70%),
    radial-gradient(42% 36% at 70% 96%, var(--think-orange), transparent 70%),
    radial-gradient(30% 38% at 6% 82%, var(--think-violet), transparent 70%);
  filter: blur(34px);
  animation: nya-glow 3.6s ease-in-out infinite, nya-drift 14s ease-in-out infinite alternate;
}
@keyframes nya-glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes nya-drift { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(8deg) scale(1.05); } 100% { transform: rotate(-6deg) scale(0.98); } }
@media (prefers-reduced-motion: reduce) {
  .nya-ask--show .nya-edge > i, .nya-ask--show .nya-ask-panel::before { animation: none !important; }
  .nya-ask--show .nya-ask-panel::before { opacity: 0.6; }
}
