/* Chat to Strangers text chat start screen. Loaded last, so it replaces the older start styles.
   One tilted gradient plate behind a white card, serif italic headlines, small mono labels, numbered lists. */

body.tx .tx-start {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "sw" "me" "plate";
  gap: 12px; align-content: start; padding: 12px 14px 20px; height: 100%; overflow-y: auto;
}
body.tx .tx-start > .switch { grid-area: sw; justify-self: start; margin: 0; }
body.tx .tx-start > .me-row { grid-area: me; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.tx .tx-start > .st-plate { grid-area: plate; }
body.tx .tx-start > .tx-aside, body.tx .tx-start > .st-shelf { display: none; }

/* the plate: a gradient sheet tilted behind the card */
.st-plate { position: relative; margin: 0 8px 12px 0; }
.st-plate::before {
  content: ""; position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(135deg, #FFD0DC, #FFD9B8);
  transform: translate(10px, 10px) rotate(1.1deg);
}
.st-card { position: relative; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(29, 22, 38, .6); }
.st-head { background: #1D1626; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; height: 52px; }
.st-kicker { font: 500 11px var(--mono); letter-spacing: .16em; color: #FFD9B8; }
.st-kicker i { font-style: normal; color: #FF4D7E; margin: 0 3px; }
.st-head .live { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #FFD9B8; }
.st-head .live-dot { width: 8px; height: 8px; box-shadow: none; }

.st-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
body.tx .st-body h1 {
  margin: 0; font: italic 400 clamp(34px, 9.5vw, 46px)/1.02 var(--serif); letter-spacing: -.015em; color: var(--ink);
  background: none; -webkit-text-fill-color: initial;
}
body.tx .st-body h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.st-body .lead { margin: -4px 0 0; font-size: 16px; line-height: 1.45; color: #4A4058; max-width: 44ch; }

.st-body .field { display: block; margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #E5336B; }
.st-body .field .opt { letter-spacing: .02em; text-transform: none; color: #6B607A; font: 400 12px var(--body); margin-left: 6px; }

/* status: set on a dotted cozy panel, like the status cards in the chat */
.st-status { background-color: #FFEDE6; background-image: radial-gradient(#F5D3D0 1.5px, transparent 1.5px); background-size: 20px 20px; border-radius: 18px; padding: 14px 14px 14px; }
.st-status .status-input { width: 100%; height: 50px; margin: 0; border: 0; border-left: 3px solid #E5336B; border-radius: 6px 16px 16px 16px; background: #fff; padding: 0 16px; font: italic 400 21px var(--serif); box-shadow: 0 8px 22px -14px rgba(150, 60, 110, .5); }
.st-status .status-input::placeholder { color: #9A8EA6; }

/* interests */
.st-interests .chips-box { background: #fff; border: 2px solid #E6CFEA; border-radius: 16px; min-height: 52px; padding: 6px 10px; }
.st-interests .chips-box input[type="text"] { border: 0; background: transparent; height: 38px; font: 500 15px var(--body); }
.tx-start .chip, .tx-start .chip.tinted { background: #1D1626; color: #fff; border: 0; border-radius: 8px; padding: 4px 6px 4px 12px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tx-start .chip button { color: #FFD9B8; }
.tx-start .chip button:hover { background: #FF4D7E; color: #fff; }

.tx-start .suggest { display: flex; flex-wrap: nowrap; gap: 8px; margin: 10px 0 0; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tx-start .suggest::-webkit-scrollbar { display: none; }
.tx-start .sug {
  flex: none; padding: 0 14px; min-height: 40px; border-radius: 8px; background: #fff; color: #1D1626;
  border: 1.5px solid rgba(29, 22, 38, .22); border-bottom: 3px solid color-mix(in srgb, var(--c) 80%, #1D1626);
  font: 500 13px var(--body); box-shadow: none; transition: transform .12s ease, background .12s ease;
}
.tx-start .sug:hover:not(:disabled) { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: none; }
.tx-start .sug:disabled { opacity: .4; }

/* the two buttons */
.st-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
body.tx .st-actions .tx-go { width: 100%; min-height: 58px; margin: 0; font: 700 18px var(--body); border-radius: 999px; background-image: var(--grad); box-shadow: var(--lift); }
body.tx .st-actions .tx-friend {
  width: 100%; min-height: 44px; margin: 0; border: 0; background: transparent; box-shadow: none; border-radius: 12px;
  color: #4A4058; font: 500 14px var(--body); text-decoration: underline; text-underline-offset: 3px;
}
body.tx .st-actions .tx-friend:hover { color: #E5336B; }
.st-fine { margin: 0; font-size: 12px; line-height: 1.5; }
.st-body .msg { margin: 0; min-height: 0; }
.st-body .msg:empty { display: none; }

/* you */
body.tx .me-row .me-btn { flex: 1 1 200px; min-width: 0; background: #fff; border: 2px solid #E6CFEA; border-radius: 16px; padding: 6px 14px 6px 6px; }
body.tx .me-row .btn-ghost { border-radius: 12px; height: 44px; }

/* desktop: card on the left, a column of small cards on the right (the same shape as the chat screen) */
@media (min-width: 900px) {
  body.tx .tx-app { max-width: 1120px; padding: 18px 32px 24px; }
  body.tx .tx-start {
    grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "sw sw" "plate me" "plate how" "plate .";
    column-gap: 34px; row-gap: 16px; padding: 0 0 24px; align-content: start;
  }
  body.tx .tx-start > .switch { margin-bottom: 4px; }
  body.tx .tx-start > .st-plate { margin: 0 14px 14px 0; align-self: start; }
  body.tx .tx-start > .me-row { grid-area: me; background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 14px 30px -22px rgba(29, 22, 38, .5); gap: 10px; }
  body.tx .tx-start > .me-row .me-btn { flex: 1 1 100%; border: 0; background: #F0E1F2; border-radius: 16px; }
  body.tx .tx-start > .me-row .btn-ghost { flex: 1 1 0; }
  body.tx .tx-start > .tx-aside {
    grid-area: how; display: block; align-self: start; margin: 0; padding: 20px 20px 18px; background: #1D1626 !important; color: #fff;
    border-radius: 24px !important; box-shadow: none;
  }
  body.tx .tx-aside h2 { margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #FF9A5B; font-style: normal; }
  body.tx .tx-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: block; }
  body.tx .tx-aside li { counter-increment: n; display: block; padding: 11px 0 11px 36px; position: relative; border-top: 1px solid rgba(255, 255, 255, .14); color: #D9CDE3; font-size: 14px; line-height: 1.4; }
  body.tx .tx-aside li::before { content: "0" counter(n); position: absolute; left: 0; top: 13px; font: 500 12px var(--mono); color: #FF9A5B; }
  body.tx .tx-aside li::marker { content: ""; }
  body.tx .tx-aside strong { color: #fff; }
  body.tx .tx-aside .fine { margin: 6px 0 0; color: #A99BB8; font-size: 12px; }
  body.tx .tx-start > .st-shelf { grid-area: shelf; display: block; align-self: start; background: #fff; border-radius: 24px; padding: 18px 20px 12px; box-shadow: 0 14px 30px -22px rgba(29, 22, 38, .5); }
  .st-label { display: block; font: 500 11px var(--mono); letter-spacing: .16em; color: #E5336B; margin-bottom: 8px; }
  .st-shelf ol { margin: 0; padding: 0; list-style: none; }
  .st-shelf li { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid rgba(29, 22, 38, .1); font-size: 15px; font-weight: 500; }
  .st-shelf li span { font: 500 12px var(--mono); color: #E5336B; }
  .st-head { height: 56px; }
  .st-body { padding: 22px 28px 26px; gap: 15px; }
  body.tx .st-body h1 { font-size: clamp(40px, 5vw, 54px); }
  .st-body .lead { font-size: 17px; }
  .tx-start .suggest { flex-wrap: wrap; overflow: visible; }
}

/* short screens: tighten so Start stays in view */
@media (min-width: 900px) and (max-height: 760px) {
  .st-body { gap: 11px; padding-top: 16px; padding-bottom: 18px; }
  body.tx .st-body h1 { font-size: 38px; }
  .st-body .lead { display: none; }
  .st-status { padding: 10px 12px; }
  body.tx .st-actions .tx-go { min-height: 52px; }
}
@media (max-width: 899px) {
  /* phones already have the Chat / Rooms / Profile bar at the bottom, so the top switch is dropped */
  body.tx .tx-start > .switch { display: none; }
  body.tx .tx-start { gap: 10px; padding-top: 10px; }
  body.tx .tx-start > .me-row { flex-wrap: nowrap; gap: 6px; }
  body.tx .me-row .me-btn { flex: 1 1 0; min-width: 0; padding-right: 10px; }
  body.tx .me-row .btn-ghost { flex: none; height: 44px; padding: 0 12px; font-size: 13px; }
  .st-status .field .opt { display: none; }
  .st-card { border-radius: 24px; }
  .st-body { padding: 16px 16px 18px; gap: 12px; }
  .st-body .lead { font-size: 15px; }
  .st-fine { font-size: 11px; }
}
