/* ============================================================
   SCREEN STYLES — landing · auth · onboarding · chat
   ============================================================ */

/* ---------- LANDING ---------- */
.ld { scroll-behavior: smooth; }
.ld__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 4vw, 3.5rem);
  max-width: 1280px; margin: 0 auto;
}
.ld__brand { display: flex; align-items: center; gap: 0.7rem; }
.ld__nav { display: flex; align-items: center; gap: 1.6rem; }
.ld__navlink {
  font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.62rem; color: var(--parchment-dim); text-decoration: none;
  transition: color 0.3s var(--ease);
}
.ld__navlink:hover { color: var(--gold-bright); }

.ld__hero {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center;
  min-height: 72vh;
}
.ld__sigil-wrap { display: flex; justify-content: center; align-items: center; }
.ld__hero-text { max-width: 540px; }
.ld__title {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  margin: 1.1rem 0 1.9rem; color: var(--parchment);
  letter-spacing: -0.01em;
}
.ld__title em { font-style: italic; color: var(--gold-bright); text-shadow: var(--glow-soft); }
.ld__lede { font-size: 1.32rem; line-height: 1.55; max-width: 480px; }
.ld__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.ld__section { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3.5rem); }
.ld__grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.disc-card {
  background: var(--void-2);
  padding: 2.2rem 1.8rem 2rem; cursor: pointer;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
  position: relative;
}
.disc-card::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px transparent; pointer-events: none;
  transition: box-shadow 0.45s var(--ease);
}
.disc-card:hover { background: var(--panel); }
.disc-card:hover::after { box-shadow: inset 0 0 30px rgba(201,162,39,0.08), inset 0 0 0 1px var(--line); }
.disc-card__glyph {
  font-size: 2.1rem; color: var(--gold); display: block;
  filter: drop-shadow(0 0 10px rgba(201,162,39,0.35));
  transition: transform 0.5s var(--ease);
}
.disc-card:hover .disc-card__glyph { transform: scale(1.12) rotate(-4deg); color: var(--gold-bright); }
.disc-card__lat {
  font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.56rem; color: var(--ash); margin: 1.1rem 0 0.5rem;
}
.disc-card__name { font-size: 1.7rem; color: var(--parchment); margin-bottom: 0.5rem; }
.disc-card__blurb { color: var(--parchment-dim); font-size: 1.02rem; line-height: 1.5; }

.ld__word { padding: clamp(3rem, 8vw, 7rem) 1.5rem; }
.ld__word-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.ld__quote-mark {
  font-family: var(--f-display); font-size: 7rem; color: var(--gold-deep);
  opacity: 0.5; line-height: 0.5; display: block; height: 2.6rem;
}
.ld__quote { font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.5; color: var(--parchment); }
.ld__sign { font-family: var(--f-caps); letter-spacing: 0.24em; color: var(--gold); margin-top: 1.6rem; font-size: 0.8rem; }

.ld__foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  max-width: 1080px; margin: 0 auto; padding: 2.2rem clamp(1.2rem, 4vw, 3.5rem) 3rem;
  border-top: 1px solid var(--line-soft);
}
.ld__foot-note { font-size: 0.82rem; color: var(--ash); font-style: italic; }

/* ---------- AUTH ---------- */
.auth { display: flex; align-items: center; justify-content: center; padding: 2rem; min-height: 100%; }
.auth__back { position: absolute; top: 1.4rem; left: 1.4rem; z-index: 3; }
.auth__stage {
  display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  max-width: 1000px; width: 100%; align-items: center;
}
.auth__aside { text-align: center; display: flex; flex-direction: column; align-items: center; }
.auth__aside-text { font-size: 1.16rem; line-height: 1.6; max-width: 320px; margin-top: 1rem; }

.auth__form { padding: clamp(2rem, 3.5vw, 3rem); }
.auth__tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1.8rem; }
.auth__tab {
  flex: 1; background: none; border: none; cursor: pointer;
  font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.64rem; color: var(--ash); padding: 0.6rem 0 0.9rem; position: relative;
  transition: color 0.3s var(--ease);
}
.auth__tab.is-on { color: var(--gold-bright); }
.auth__tab.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.auth__title { font-size: 2.2rem; color: var(--parchment); }
.auth__sub { font-size: 1.05rem; margin: 0.4rem 0 1.8rem; }
.auth__fields { display: flex; flex-direction: column; gap: 1.5rem; }
.auth__submit { width: 100%; margin-top: 1.9rem; }
.auth__divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--ash); }
.auth__divider::before, .auth__divider::after { content: ""; height: 1px; flex: 1; background: var(--line-soft); }
.auth__divider span { font-style: italic; font-size: 0.9rem; }
.auth__oauth { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.auth__oauth-glyph { font-size: 1.1rem; color: var(--gold); }
.auth__fine { font-size: 0.78rem; color: var(--ash); text-align: center; margin-top: 1.4rem; font-style: italic; }
.auth__error {
  border: 1px solid rgba(201, 70, 39, 0.35);
  background: rgba(201, 70, 39, 0.08);
  color: #f0b08b;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .auth__stage { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}

/* ---------- ONBOARDING ---------- */
.onb { display: flex; flex-direction: column; align-items: center; padding: 2rem 1.5rem 3rem; }
.onb__rail {
  display: flex; gap: 0; margin: 1rem auto 0; padding-bottom: 2.5rem;
}
.onb__phase {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: clamp(74px, 18vw, 120px); opacity: 0.4; transition: opacity 0.5s var(--ease);
}
.onb__phase.is-on, .onb__phase.is-done { opacity: 1; }
.onb__phase-glyph {
  font-size: 1.4rem; color: var(--ash); width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--line-soft); background: var(--void-2);
  transition: all 0.5s var(--ease); position: relative; z-index: 2;
}
.onb__phase.is-on .onb__phase-glyph {
  color: var(--gold-bright); border-color: var(--gold);
  box-shadow: var(--glow-gold); background: var(--panel);
}
.onb__phase.is-done .onb__phase-glyph { color: var(--gold-deep); border-color: var(--line); }
.onb__phase-name { font-family: var(--f-caps); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.6rem; color: var(--parchment-dim); }
.onb__phase-ru { font-size: 0.74rem; color: var(--ash); font-style: italic; }
.onb__phase-link {
  position: absolute; top: 1.3rem; left: 50%; width: 100%; height: 1px;
  background: var(--line-soft); z-index: 1;
}
.onb__phase.is-done .onb__phase-link { background: var(--line-strong); }

.onb__stage {
  width: 100%; max-width: 600px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.onb__sigil { margin-bottom: 1rem; }
.onb__panel { width: 100%; min-height: 300px; }
.onb__h { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--parchment); margin: 0.8rem 0 1rem; }
.onb__h em { font-style: italic; color: var(--gold-bright); }
.onb__lede { font-size: 1.18rem; line-height: 1.55; max-width: 460px; margin: 0 auto 2rem; }
.onb__field { max-width: 380px; margin: 0 auto; text-align: left; }
.onb__field input[type="date"] { color-scheme: dark; font-family: var(--f-display); }

.onb__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; max-width: 520px; margin: 0 auto; }
.onb__chip {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.7rem 1.2rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--void-2); color: var(--parchment-dim);
  font-family: var(--f-body); font-size: 1.02rem; transition: all 0.35s var(--ease);
}
.onb__chip-glyph { color: var(--gold); font-size: 1.1rem; }
.onb__chip:hover { border-color: var(--line-strong); color: var(--parchment); }
.onb__chip.is-on {
  border-color: var(--gold); color: #fff6df; background: rgba(201,162,39,0.12);
  box-shadow: inset 0 0 18px rgba(201,162,39,0.10);
}
.onb__seal { margin-top: 1rem; display: flex; justify-content: center; }

.onb__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: 460px; margin: 2.5rem auto 0;
}
.onb__dots { display: flex; gap: 0.5rem; }
.onb__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: all 0.4s var(--ease); }
.onb__dots i.is-on { background: var(--gold); box-shadow: 0 0 8px var(--gold); width: 18px; border-radius: 4px; }

@media (max-width: 640px) {
  .onb__phase-name, .onb__phase-ru { display: none; }
}

/* ---------- CHAT ---------- */
.chat { display: grid; grid-template-columns: 290px 1fr; height: 100%; overflow: hidden; }
.chat--collapsed { grid-template-columns: 0 1fr; }

/* sidebar */
.cs {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, var(--void-2), var(--void));
  border-right: 1px solid var(--line-soft);
  padding: 1.2rem 0.9rem 1rem;
}
.chat--collapsed .cs { display: none; }
.cs__top { display: flex; align-items: center; justify-content: space-between; padding: 0 0.4rem 1.2rem; }
.cs__collapse {
  background: none; border: 1px solid var(--line-soft); color: var(--parchment-dim);
  width: 26px; height: 26px; border-radius: 4px; cursor: pointer; font-size: 1rem; line-height: 1;
  transition: all 0.3s var(--ease);
}
.cs__collapse:hover { border-color: var(--gold); color: var(--gold-bright); }
.cs__new {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; cursor: pointer;
  padding: 0.85rem 1rem; margin-bottom: 1.4rem;
  background: rgba(201,162,39,0.08); border: 1px solid var(--line);
  color: var(--gold-bright); border-radius: 3px;
  font-family: var(--f-display); font-size: 1.08rem; transition: all 0.3s var(--ease);
}
.cs__new:hover { background: rgba(201,162,39,0.16); border-color: var(--gold); box-shadow: inset 0 0 18px rgba(201,162,39,0.1); }
.cs__group-label {
  font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.55rem; color: var(--ash); padding: 0 0.5rem; margin: 0.5rem 0 0.6rem;
}
.cs__disc { display: flex; flex-direction: column; gap: 1px; margin-bottom: 1.2rem; }
.cs__disc-item {
  display: flex; align-items: center; gap: 0.75rem; cursor: pointer; text-align: left;
  padding: 0.6rem 0.7rem; border: none; background: none; border-radius: 4px;
  color: var(--parchment-dim); font-family: var(--f-body); font-size: 1.04rem;
  transition: all 0.25s var(--ease);
}
.cs__disc-glyph { color: var(--gold-deep); font-size: 1.1rem; width: 1.3rem; text-align: center; transition: color 0.25s; }
.cs__disc-item:hover { background: rgba(201,162,39,0.06); color: var(--parchment); }
.cs__disc-item.is-on { background: rgba(201,162,39,0.12); color: #fff6df; }
.cs__disc-item.is-on .cs__disc-glyph { color: var(--gold-bright); filter: drop-shadow(0 0 6px rgba(201,162,39,0.5)); }

.cs__history { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; min-height: 0; }
.cs__hist-item {
  text-align: left; cursor: pointer; padding: 0.5rem 0.7rem; border: none; background: none;
  border-radius: 4px; color: var(--ash); font-family: var(--f-body); font-size: 0.96rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.25s var(--ease);
}
.cs__hist-item:hover, .cs__hist-item.is-on { background: rgba(201,162,39,0.05); color: var(--parchment-dim); }
.cs__hist-item.is-on { color: var(--gold-bright); }
.cs__empty { color: var(--ash); font-size: 0.84rem; font-style: italic; padding: 0.4rem 0.75rem; }

.cs__user {
  display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; padding: 0.7rem 0.5rem 0.2rem;
  border-top: 1px solid var(--line-soft);
}
.cs__avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, var(--gold-deep), var(--void-2));
  border: 1px solid var(--line); color: #fff6df; font-family: var(--f-caps); font-size: 0.8rem;
}
.cs__user-name { flex: 1; font-size: 1rem; color: var(--parchment); }
.cs__signout { background: none; border: none; color: var(--ash); cursor: pointer; font-size: 1.1rem; transition: color 0.3s; }
.cs__signout:hover { color: var(--ember); }

/* main */
.cm { display: flex; flex-direction: column; height: 100%; overflow: hidden; min-width: 0; }
.cm__head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line-soft);
  background: rgba(10,8,7,0.7); backdrop-filter: blur(6px);
}
.cm__expand { background: none; border: 1px solid var(--line-soft); color: var(--parchment-dim);
  width: 32px; height: 32px; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.cm__expand:hover { border-color: var(--gold); color: var(--gold-bright); }
.cm__head-title { display: flex; align-items: center; gap: 0.8rem; flex: 1; }
.cm__head-glyph { font-size: 1.6rem; color: var(--gold); filter: drop-shadow(0 0 8px rgba(201,162,39,0.4)); }
.cm__head-name { font-family: var(--f-display); font-size: 1.4rem; color: var(--parchment); line-height: 1; }
.cm__head-lat { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.55rem; color: var(--ash); margin-top: 0.25rem; }
.cm__head-status { display: flex; align-items: center; gap: 0.5rem; font-style: italic; font-size: 0.85rem; color: var(--parchment-dim); }
.cm__head-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: glowPulse 2.5s ease-in-out infinite; }

.cm__scroll { flex: 1; overflow-y: auto; min-height: 0; }
.cm__thread { max-width: 760px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 1rem; display: flex; flex-direction: column; gap: 2rem; }

.msg { display: flex; gap: 0.9rem; animation: riseIn 0.5s var(--ease) both; }
.msg--user { justify-content: flex-end; }
.msg__avatar { flex: none; margin-top: 0.2rem; }
.msg__col { min-width: 0; max-width: 100%; }
.msg__who { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.56rem; color: var(--gold); margin-bottom: 0.45rem; }
.msg__body { font-size: 1.18rem; line-height: 1.62; color: var(--parchment); text-wrap: pretty; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg__body--user {
  background: linear-gradient(180deg, rgba(34,27,20,0.8), rgba(20,16,12,0.8));
  border: 1px solid var(--line); border-radius: 12px 12px 3px 12px;
  padding: 0.8rem 1.15rem; max-width: 70%; color: var(--parchment);
}
.tw-caret { color: var(--gold-bright); animation: glowPulse 1s ease-in-out infinite; margin-left: 2px; font-size: 0.8em; }
.msg__sources { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; }
.msg__sources a {
  color: var(--gold-bright);
  border-left: 1px solid var(--gold-dim);
  padding-left: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
  opacity: 0.82;
  overflow-wrap: anywhere;
}
.msg__sources a:hover { opacity: 1; text-decoration: underline; }

.cm__divining { display: flex; align-items: center; gap: 0.5rem; color: var(--parchment-dim); font-style: italic; font-size: 1.05rem; }
.cm__divining i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: divine 1.3s ease-in-out infinite; }
.cm__divining i:nth-child(2) { animation-delay: 0.2s; }
.cm__divining i:nth-child(3) { animation-delay: 0.4s; margin-right: 0.3rem; }
@keyframes divine { 0%,100%{ opacity:0.2; transform: translateY(0);} 50%{ opacity:1; transform: translateY(-3px);} }

/* tarot spread */
.tspread { display: flex; gap: 0.9rem; margin: 0.3rem 0 1.2rem; flex-wrap: wrap; }
.tspread__slot { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.tspread__label { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.52rem; color: var(--ash); }
.tcard { width: 128px; height: 224px; perspective: 900px; animation: riseIn 0.6s var(--ease) both; }
.tcard__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.tcard__inner.is-flipped { transform: rotateY(180deg); }
.tcard__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); padding: 0.7rem; text-align: center;
}
.tcard__back {
  background:
    repeating-linear-gradient(45deg, rgba(201,162,39,0.06) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, var(--panel-2), var(--void-2));
  box-shadow: inset 0 0 0 3px var(--void-2), inset 0 0 0 4px var(--line);
}
.tcard__back-glyph { font-size: 2rem; color: var(--gold); opacity: 0.7; animation: glowPulse 3s ease-in-out infinite; }
.tcard__front {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, #1c1610, #0f0b08);
  box-shadow: inset 0 0 0 3px var(--void-2), inset 0 0 0 4px var(--line-strong), 0 0 24px rgba(201,162,39,0.12);
  overflow: hidden;
}
.tcard__front--image { justify-content: flex-end; padding: 0; background: #120d09; }
.tcard__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard__front--image::after {
  content: ""; position: absolute; inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8,6,5,0.52) 38%, rgba(8,6,5,0.92));
  pointer-events: none;
}
.tcard__num {
  position: relative; z-index: 2;
  align-self: flex-start;
  margin: 0.42rem 0 0 0.48rem;
  font-family: var(--f-caps); font-size: 0.7rem; letter-spacing: 0.1em;
  color: #fff4cc;
  background: rgba(10,8,7,0.72);
  border: 1px solid rgba(232,199,90,0.45);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.45);
}
.tcard__glyph { font-size: 2.3rem; color: var(--gold-bright); margin: 0.3rem 0; filter: drop-shadow(0 0 10px rgba(201,162,39,0.5)); }
.tcard__meta {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 0.18rem;
  width: 100%;
  padding: 1.4rem 0.55rem 0.62rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.tcard__name { font-family: var(--f-display); font-size: 1.02rem; color: #fff6df; line-height: 1.05; }
.tcard__key { font-size: 0.61rem; color: var(--parchment-dim); font-style: italic; line-height: 1.15; margin-top: 0.1rem; }

/* compose */
.cm__compose-wrap { padding: 0.5rem clamp(1rem, 4vw, 2rem) 1rem; max-width: 800px; width: 100%; margin: 0 auto; }
.cm__suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; justify-content: center; }
.cm__chip {
  cursor: pointer; padding: 0.5rem 1rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--void-2); color: var(--parchment-dim);
  font-family: var(--f-body); font-size: 0.96rem; font-style: italic; transition: all 0.3s var(--ease);
}
.cm__chip:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,162,39,0.08); }
.cm__compose {
  display: flex; align-items: flex-end; gap: 0.6rem;
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 0.55rem 0.55rem 0.55rem 1.2rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cm__compose:focus-within { border-color: var(--gold); box-shadow: var(--glow-gold); }
.cm__compose textarea {
  flex: 1; background: none; border: none; outline: none; resize: none;
  color: var(--parchment); font-family: var(--f-display); font-size: 1.2rem; line-height: 1.5;
  padding: 0.5rem 0; max-height: 160px;
}
.cm__compose textarea::placeholder { color: var(--ash-deep); font-style: italic; }
.cm__send {
  flex: none; width: 42px; height: 42px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--gold-bright);
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #1a1206;
  font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.cm__send:hover:not(:disabled) { box-shadow: var(--glow-gold); background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
.cm__send:disabled { opacity: 0.35; cursor: not-allowed; }
.cm__fineprint { text-align: center; font-size: 0.76rem; color: var(--ash); font-style: italic; margin-top: 0.7rem; }

@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; }
  .cs { position: fixed; z-index: 20; width: 280px; box-shadow: 0 0 60px rgba(0,0,0,0.7); }
  .chat--collapsed .cs { display: none; }
  .tcard { width: 96px; height: 168px; }
  .tcard__name { font-size: 0.88rem; }
  .tcard__key { display: none; }
}

@media (max-width: 640px) {
  .onb__phase-name, .onb__phase-ru { display: none; }
}

@media (max-width: 860px) {
  .ld__nav .ld__navlink { display: none; }
  .ld__hero { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .ld__hero-text { margin: 0 auto; }
  .ld__lede, .ld__cta { margin-left: auto; margin-right: auto; justify-content: center; }
  .ld__sigil-wrap { order: -1; }
  .ld__sigil-wrap svg { width: 280px; height: 280px; }
  .ld__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ld__top {
    padding: 1rem 0.85rem;
    gap: 0.75rem;
  }
  .ld__brand { gap: 0.5rem; min-width: 0; }
  .ld__top .wordmark {
    font-size: 0.9rem !important;
    letter-spacing: 0.26em;
  }
  .ld__nav {
    flex: none;
    gap: 0.55rem;
  }
  .ld__nav .btn {
    padding: 0.7em 0.95em;
    max-width: 8.5rem;
    white-space: normal;
    line-height: 1.15;
    letter-spacing: 0.12em;
    font-size: 0.58rem;
  }
  .ld__nav .btn--ghost {
    padding-left: 0.4em;
    padding-right: 0.4em;
  }
}
