/* ── How Imagine works: the transparency page ────────────────────────────────
 * Built on philosophy.css (reading column, chapter heads, table of contents);
 * this adds the four steps, the cards, the real examples, the never-list and
 * the decline messages. On phones every row of cards is a swipe carousel.
 */

.tr .ph-hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); }
.tr .ph-ch-head h2 { margin-top: 4px; }
/* Chapters sit closer than the essay's: this page is read in parts. */
.tr .ph-ch { margin-top: clamp(56px, 9vh, 96px); }

/* ── The painting and the contents ── */
.tr-hero-fig { margin-top: clamp(28px, 5vh, 44px); }
.tr-hero-art { aspect-ratio: 2.6 / 1; }
.tr-toc { max-width: 1040px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }

.tr-h3 {
  margin: 1.6em 0 0.6em;
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.15;
  color: var(--silk);
}
.ph-text b { color: var(--silk); font-weight: 600; }

/* ── I. The four steps ── */
.tr-flow {
  list-style: none; margin: 0 auto clamp(28px, 4vh, 40px); padding: 0;
  max-width: 1040px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  counter-reset: none;
}
.tr-flow li {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--hairline); border-radius: 18px;
  background: linear-gradient(180deg, rgba(216, 163, 94, 0.07), rgba(255, 255, 255, 0.015));
}
.tr-flow li:not(:last-child)::after {           /* the thread between steps */
  content: ''; position: absolute; top: 38px; right: -14px; width: 14px; height: 1px;
  background: linear-gradient(90deg, rgba(216, 163, 94, 0.6), rgba(216, 163, 94, 0.15));
}
.tr-flow-n {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(216, 163, 94, 0.55);
  font-family: 'Instrument Serif', Georgia, serif; font-size: 1.1rem; color: var(--candle);
}
.tr-flow h3, .tr-card h3 {
  margin: 14px 0 8px;
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 1.35rem; line-height: 1.15; color: var(--silk);
}
.tr-flow p, .tr-card p { font-size: 0.93rem; line-height: 1.65; color: rgba(244, 233, 228, 0.8); margin: 0; }
.tr-flow b { color: var(--silk); font-weight: 600; }

/* ── Cards (what Imagine paints; safeguards) ── */
.tr-grid {
  max-width: 1040px; margin: 0 auto clamp(26px, 4vh, 36px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.tr-card {
  padding: 20px 20px 22px;
  border: 1px solid var(--hairline); border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.tr-card h3 { margin-top: 0; }

/* ── IV. Real examples ── */
.tr-examples {
  max-width: 1040px; margin: 8px auto clamp(26px, 4vh, 36px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.tr-ex {
  padding: 20px 22px 22px;
  border: 1px solid var(--hairline); border-radius: 18px;
  background: rgba(12, 6, 10, 0.45);
}
.tr-ex-tag {
  display: inline-block; margin: 0 0 14px;
  padding: 5px 11px; border-radius: 999px;
  font: 600 0.68rem/1.2 'Inter', system-ui, sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.tr-ex-tag.is-asked   { color: #bfe3c4; background: rgba(110, 180, 125, 0.12); border: 1px solid rgba(110, 180, 125, 0.4); }
.tr-ex-tag.is-adapted { color: #f3d3a4; background: rgba(216, 163, 94, 0.12); border: 1px solid rgba(216, 163, 94, 0.45); }
.tr-ex-k {
  margin: 12px 0 4px;
  font: 600 0.66rem/1.3 'Inter', system-ui, sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-ash);
}
.tr-ex-ask {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
  font-size: 1.18rem; line-height: 1.4; color: var(--silk);
}
.tr-ex-scene {
  margin: 0;
  padding-left: 12px; border-left: 1px solid rgba(216, 163, 94, 0.45);
  font-size: 0.9rem; line-height: 1.65; color: rgba(244, 233, 228, 0.78);
}

/* ── V. Never, and the messages ── */
.tr-never {
  list-style: none; max-width: 760px; margin: 0 auto clamp(20px, 3vh, 30px); padding: 0;
  display: grid; gap: 10px;
}
.tr-never li {
  position: relative;
  padding: 16px 18px 16px 50px;
  border: 1px solid rgba(214, 86, 104, 0.28); border-radius: 16px;
  background: rgba(214, 86, 104, 0.05);
  font-size: 0.97rem; line-height: 1.65; color: rgba(244, 233, 228, 0.84);
}
.tr-never li::before {                          /* a small struck circle */
  content: ''; position: absolute; left: 18px; top: 19px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(232, 120, 135, 0.85);
  background: linear-gradient(135deg, transparent 45%, rgba(232, 120, 135, 0.85) 46%, rgba(232, 120, 135, 0.85) 54%, transparent 55%);
}
.tr-never b { color: var(--silk); font-weight: 600; }

.tr-msgs { max-width: 680px; margin: 0 auto 1.4em; display: grid; gap: 10px; }
.tr-msg {
  margin: 0; padding: 14px 16px;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem; line-height: 1.55; color: var(--silk);
}
.tr-msg span {
  display: block; margin-bottom: 4px;
  font: 600 0.64rem/1.3 'Inter', system-ui, sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--candle);
}
.tr-msg em { display: block; margin-top: 4px; font-style: normal; font-size: 0.85rem; color: var(--rose-ash); }

/* ── Close ── */
.tr-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 1.6em !important; }
.ph-text a.tr-link { color: var(--candle); font-size: 0.95rem; }
.ph-text .tr-note { font-size: 0.85rem; color: var(--rose-ash); margin-top: 1.4em; }

/* ── II. Reading the intent: words → lens → parts → answer ── */
.tr-intent {
  max-width: 1040px; margin: clamp(22px, 4vh, 34px) auto 0;
  display: grid; grid-template-columns: 1.1fr auto 1.2fr 0.9fr; align-items: center; gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--hairline); border-radius: 22px;
  background:
    radial-gradient(60% 90% at 38% 50%, rgba(216, 163, 94, 0.1), transparent 70%),
    rgba(12, 6, 10, 0.5);
}
.tr-intent-k, .tr-feature-k {
  display: block; margin-bottom: 6px;
  font: 600 0.64rem/1.3 'Inter', system-ui, sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-ash);
}
.tr-intent-ask p {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
  font-size: 1.22rem; line-height: 1.4; color: var(--silk);
}
.tr-intent-lens { display: grid; justify-items: center; gap: 6px; position: relative; }
.tr-intent-lens svg { width: 104px; height: 104px; animation: trTurn 18s linear infinite; }
.tr-intent-lens span { font: 600 0.62rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--candle); white-space: nowrap; }
@keyframes trTurn { to { transform: rotate(360deg); } }
.tr-intent-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tr-intent-parts li {
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(216, 163, 94, 0.28); background: rgba(216, 163, 94, 0.06);
  font-size: 0.86rem; line-height: 1.3; color: rgba(244, 233, 228, 0.82);
}
.tr-intent-parts b {
  display: inline-block; min-width: 5.2em;
  font: 600 0.62rem/1 'Inter', system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--candle);
}
.tr-intent-out { display: grid; gap: 8px; justify-items: start; }
.tr-out {
  padding: 7px 13px; border-radius: 999px;
  font: 600 0.7rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
}
.tr-out.is-asked    { color: #bfe3c4; background: rgba(110, 180, 125, 0.14); border: 1px solid rgba(110, 180, 125, 0.5); box-shadow: 0 0 22px rgba(110, 180, 125, 0.18); }
.tr-out.is-adapted  { color: #f3d3a4; background: rgba(216, 163, 94, 0.08); border: 1px solid rgba(216, 163, 94, 0.35); }
.tr-out.is-declined { color: rgba(240, 160, 170, 0.75); border: 1px dashed rgba(232, 120, 135, 0.4); }
.tr-intent figcaption {
  grid-column: 1 / -1;
  padding-top: 16px; border-top: 1px solid var(--hairline);
  font-size: 0.93rem; line-height: 1.7; color: rgba(244, 233, 228, 0.78);
}

/* ── IV. Transformations: asked → the part → became ── */
.tr-turns { list-style: none; max-width: 1040px; margin: 8px auto clamp(18px, 3vh, 26px); padding: 0; display: grid; gap: 12px; }
.tr-turns li {
  display: grid; grid-template-columns: 1fr 190px 1.25fr; align-items: center; gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--hairline); border-radius: 18px;
  background: rgba(12, 6, 10, 0.45);
}
.tr-turn-ask, .tr-turn-to { margin: 0; }
.tr-turn-ask span, .tr-turn-to span {
  display: block; margin-bottom: 5px;
  font: 600 0.62rem/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rose-ash);
}
.tr-turn-ask { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--silk); }
.tr-turn-to { font-size: 0.9rem; line-height: 1.6; color: rgba(244, 233, 228, 0.8); padding-left: 12px; border-left: 1px solid rgba(216, 163, 94, 0.45); }
.tr-turn-to span { color: var(--candle); }
.tr-turn-part {
  position: relative; margin: 0; text-align: center;
  padding: 8px 10px; border-radius: 12px;
  font: 500 0.78rem/1.35 'Inter', system-ui, sans-serif; color: #f3d3a4;
  background: rgba(216, 163, 94, 0.1); border: 1px solid rgba(216, 163, 94, 0.35);
}
.tr-turn-part::after {                              /* the arrow on to "became" */
  content: '→'; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  color: var(--candle); font-size: 1rem;
}

/* ── V. The nude in art, with the pose sheet ── */
.tr-feature {
  max-width: 1040px; margin: 0 auto clamp(18px, 3vh, 26px);
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(20px, 3vw, 40px);
}
.tr-sheet { margin: 0; }
.tr-sheet svg {
  display: block; width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(216, 163, 94, 0.25);
  transform: rotate(-1.2deg);
}
.tr-sheet figcaption { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; color: var(--rose-ash); text-align: center; }
.tr-feature-text > p.tr-feature-k { color: var(--candle); font-size: 0.66rem; line-height: 1.3; margin-bottom: 10px; }
.tr-feature-text h3 {
  margin: 0 0 12px;
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1.05; color: var(--silk);
}
.tr-feature-text > p { font-size: 1rem; line-height: 1.75; color: rgba(244, 233, 228, 0.85); margin: 0 0 14px; }
.tr-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-feature-list li {
  position: relative; padding-left: 22px;
  font-size: 0.93rem; line-height: 1.55; color: rgba(244, 233, 228, 0.82);
}
.tr-feature-list li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--candle); font-size: 0.8rem; }
.tr-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── VI. Real pictures: the slideshow ── */
.tr-show { max-width: 1040px; margin: 8px auto 0; }
.tr-show-track {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; outline: none;
  padding: 4px 2px 6px;
}
.tr-show-track::-webkit-scrollbar { display: none; }
.tr-show-track:focus-visible { box-shadow: 0 0 0 2px rgba(216, 163, 94, 0.5); border-radius: 22px; }
.tr-slide {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--hairline); border-radius: 22px;
  background: rgba(12, 6, 10, 0.5);
}
.tr-slide.is-pair { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.tr-slide-img {
  position: relative; overflow: hidden; border-radius: 14px;
  aspect-ratio: 720 / 977; max-height: 560px; justify-self: center; width: 100%;
  background: #1a0f18;
}
.tr-slide-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s ease, transform 0.5s ease; }
.tr-slide-img.is-veiled img { filter: blur(26px) saturate(0.8); transform: scale(1.08); }
.tr-veil {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px;
  border: 0; cursor: pointer; background: rgba(12, 6, 10, 0.35);
  font: 600 0.78rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silk);
}
.tr-veil span { font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 0.85rem; color: var(--candle); }
.tr-veil:focus-visible { outline: 2px solid var(--candle); outline-offset: -4px; }
.tr-slide-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-pair-k {
  position: absolute; top: 10px; padding: 4px 9px; border-radius: 999px;
  font: 600 0.62rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--silk); background: rgba(12, 6, 10, 0.7); border: 1px solid rgba(255, 255, 255, 0.15);
}
.tr-pair-k.is-before { left: 10px; }
.tr-pair-k.is-after  { left: calc(50% + 15px); color: #ffd0c4; }
.tr-slide-text .tr-ex-tag { margin-bottom: 6px; }
.tr-show-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.tr-show-step {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03);
  color: var(--silk); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.tr-show-step:hover:not(:disabled) { border-color: rgba(216, 163, 94, 0.6); background: rgba(216, 163, 94, 0.1); }
.tr-show-step:disabled { opacity: 0.3; cursor: default; }
.tr-show-count { min-width: 4.5em; text-align: center; font: 500 0.82rem/1 'Inter', system-ui, sans-serif; color: var(--rose-ash); }

@media (prefers-reduced-motion: reduce) {
  .tr-intent-lens svg { animation: none; }
  .tr-show-track { scroll-behavior: auto; }
}

/* ── Tablet ── */
@media (max-width: 960px) {
  .tr-flow, .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-flow li:nth-child(2)::after { display: none; }
  .tr-intent { grid-template-columns: 1fr auto; }
  .tr-intent-ask { grid-column: 1 / -1; }
  .tr-turns li { grid-template-columns: 1fr; gap: 10px; }
  .tr-turn-part { justify-self: start; }
  .tr-turn-part::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .tr-turn-to { margin-top: 10px; }
  .tr-feature { grid-template-columns: 1fr; }
  .tr-grid--three { grid-template-columns: 1fr; }
}

/* ── Phone: rows of cards swipe ── */
@media (max-width: 640px) {
  .tr-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-hero-art { aspect-ratio: 16 / 10; }
  .tr-intent { grid-template-columns: 1fr; justify-items: stretch; }
  .tr-intent-lens svg { width: 80px; height: 80px; }
  .tr-intent-out { grid-auto-flow: column; justify-content: start; gap: 6px; }
  .tr-out { font-size: 0.6rem; padding: 6px 9px; }
  .tr-slide, .tr-slide.is-pair { grid-template-columns: 1fr; }
  .tr-slide-img { max-height: 440px; width: auto; }
  .tr-slide-pair .tr-slide-img { max-height: 300px; }
  .tr-flow, .tr-grid, .tr-examples, .tr-turns {
    display: flex; gap: 12px;
    margin-left: -16px; margin-right: -16px; padding: 2px 16px 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .tr-flow::-webkit-scrollbar, .tr-grid::-webkit-scrollbar, .tr-examples::-webkit-scrollbar, .tr-turns::-webkit-scrollbar { display: none; }
  .tr-flow li, .tr-card, .tr-ex, .tr-turns li { flex: 0 0 84%; scroll-snap-align: start; }
  .tr-flow li::after { display: none; }
  .tr-never li { padding-left: 44px; }
  .tr-never li::before { left: 15px; }
}

/* ── VII. We test it (on the transparency page) ── */
.tr-stats {
  max-width: 1040px; margin: 8px auto clamp(22px, 3vh, 30px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.tr-stat {
  padding: 18px 20px; border-radius: 18px;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.025);
}
.tr-stat b {
  display: block; margin-bottom: 6px;
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; color: var(--candle);
}
.tr-stat b small { font-size: 0.5em; color: var(--rose-ash); }
.tr-stat p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: rgba(244, 233, 228, 0.8); }
.tr-stat.is-lead { background: linear-gradient(160deg, rgba(216, 163, 94, 0.14), rgba(255, 255, 255, 0.02)); border-color: rgba(216, 163, 94, 0.4); }

.tr-tricks {
  max-width: 1040px; margin: 8px auto clamp(22px, 3vh, 30px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.tr-trick { margin: 0; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; background: rgba(12, 6, 10, 0.5); }
.tr-trick img { display: block; width: 100%; aspect-ratio: 480 / 652; object-fit: cover; }
.tr-trick figcaption { padding: 10px 12px 12px; }
.tr-trick-k { display: block; font: 600 0.6rem/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-ash); }
.tr-trick-ask { display: block; margin: 4px 0 8px; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 0.98rem; line-height: 1.3; color: var(--silk); }
.tr-trick .tt-tag { font-size: 0.6rem; }
.tr-trick.is-text { display: flex; flex-direction: column; justify-content: center; padding: 16px 14px; min-height: 180px; }
.tr-trick.is-text figcaption { padding: 0; }

.tr-weak { list-style: none; max-width: 760px; margin: 0 auto 18px; padding: 0; display: grid; gap: 8px; }
.tr-weak li {
  padding: 13px 16px 13px 44px; position: relative;
  border: 1px solid rgba(216, 163, 94, 0.3); border-radius: 14px; background: rgba(216, 163, 94, 0.05);
  font-size: 0.94rem; line-height: 1.6; color: rgba(244, 233, 228, 0.84);
}
.tr-weak li::before { content: '!'; position: absolute; left: 15px; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font: 700 0.72rem/1 'Inter', system-ui, sans-serif; color: #1a0f12; background: var(--candle); }
.tr-weak b { color: var(--silk); font-weight: 600; }
.tr-callout {
  max-width: 760px; margin: 0 auto; padding: 20px 22px; border-radius: 18px;
  border: 1px solid rgba(216, 163, 94, 0.45);
  background: linear-gradient(160deg, rgba(216, 163, 94, 0.12), rgba(214, 86, 104, 0.06));
}
.tr-callout p { margin: 0 0 12px; font-size: 1rem; line-height: 1.7; color: var(--silk); }
.tr-callout .tr-cta { margin-top: 0 !important; }
.tr-loglink { display: inline-flex; align-items: center; gap: 8px; color: var(--candle); font-weight: 600; font-size: 0.95rem; }

/* ── The test log page ── */
.tt .ph-kicker a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(216, 163, 94, 0.4); }
.tt .ph-meta a { color: var(--candle); }
.tt-notes { margin-top: 26px; }
.tt-notes p { font-size: 0.92rem; color: rgba(244, 233, 228, 0.72); }
.tt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; margin: 8px auto 22px; }
.tt-chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03);
  font: 500 0.84rem/1 'Inter', system-ui, sans-serif; color: var(--silk);
}
.tt-chip b { margin-left: 4px; color: var(--candle); font-weight: 600; }
.tt-chip.is-on { background: rgba(216, 163, 94, 0.16); border-color: rgba(216, 163, 94, 0.7); }
.tt-grid { max-width: 1120px; margin: 0 auto 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.tt-card { border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; background: rgba(12, 6, 10, 0.5); }
.tt-card[hidden] { display: none; }
.tt-img { border-radius: 0; max-height: none; aspect-ratio: 480 / 652; }
.tt-body { padding: 14px 16px 16px; }
.tt-id { margin: 0 0 6px; font: 600 0.62rem/1.4 'Inter', system-ui, sans-serif; letter-spacing: 0.13em; text-transform: uppercase; color: var(--rose-ash); }
.tt-k { margin: 10px 0 3px; font: 600 0.6rem/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-ash); }
.tt-ask { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.08rem; line-height: 1.35; color: var(--silk); }
.tt-ask.is-para span { font-family: 'Inter', system-ui, sans-serif; font-style: normal; font-size: 0.72rem; color: var(--rose-ash); }
.tt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tt-tag { padding: 4px 9px; border-radius: 999px; font: 600 0.62rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.tt-tag.is-as_asked { color: #bfe3c4; background: rgba(110, 180, 125, 0.12); border: 1px solid rgba(110, 180, 125, 0.4); }
.tt-tag.is-adapted  { color: #f3d3a4; background: rgba(216, 163, 94, 0.12); border: 1px solid rgba(216, 163, 94, 0.45); }
.tt-tag.is-declined { color: #f4b6bf; background: rgba(214, 86, 104, 0.1); border: 1px solid rgba(214, 86, 104, 0.45); }
.tt-more { margin-top: 10px; }
.tt-more summary { cursor: pointer; font-size: 0.84rem; color: var(--candle); }
.tt-scene { margin: 0; padding-left: 10px; border-left: 1px solid rgba(216, 163, 94, 0.45); font-size: 0.84rem; line-height: 1.6; color: rgba(244, 233, 228, 0.78); }
.tt-chat { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tt-chat li { font-size: 0.85rem; line-height: 1.5; color: rgba(244, 233, 228, 0.85); padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.tt-chat li.is-mithu { background: rgba(216, 163, 94, 0.08); }
.tt-chat b { display: block; font: 600 0.6rem/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--candle); }

@media (max-width: 960px) {
  .tr-tricks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tr-stats, .tr-tricks {
    display: flex; gap: 12px; margin-left: -16px; margin-right: -16px; padding: 2px 16px 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .tr-stats::-webkit-scrollbar, .tr-tricks::-webkit-scrollbar { display: none; }
  .tr-stat { flex: 0 0 72%; scroll-snap-align: start; }
  .tr-trick { flex: 0 0 56%; scroll-snap-align: start; }
  .tt-grid { grid-template-columns: 1fr; }
}
.tr-trick .tt-img img { aspect-ratio: auto; height: 100%; }

/* ── Plates: the picture slot when there is no picture, and why ── */
.tt-plate {
  position: relative; aspect-ratio: 480 / 652; display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 24px 22px; text-align: center; isolation: isolate;
  --pc: 216, 163, 94;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(var(--pc), 0.16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px),
    #140b10;
}
.tt-plate::before {                                /* the plate's inner frame */
  content: ''; position: absolute; inset: 12px; z-index: -1;
  border: 1px solid rgba(var(--pc), 0.35); border-radius: 12px;
}
.tt-plate svg {
  width: 64px; height: 64px; fill: none; stroke: rgb(var(--pc)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(var(--pc), 0.35));
}
.tt-plate b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--silk); }
.tt-plate span { max-width: 22ch; font-size: 0.85rem; line-height: 1.5; color: rgba(244, 233, 228, 0.72); }
.tt-plate.is-declined { --pc: 232, 120, 135; }
.tt-plate.is-slip     { --pc: 240, 150, 90; }
.tt-plate.is-child    { --pc: 140, 190, 150; }
.tt-plate.is-chat     { --pc: 170, 160, 230; }
.tt-plate.is-likeness, .tt-plate.is-written { --pc: 216, 163, 94; }
.tr-trick .tt-plate { aspect-ratio: 480 / 652; padding: 16px 12px; gap: 8px; }
.tr-trick .tt-plate b { font-size: 1.3rem; }
.tr-trick .tt-plate span { font-size: 0.75rem; }
.tr-trick .tt-plate svg { width: 48px; height: 48px; }

.tt-card.is-slip { border-color: rgba(240, 150, 90, 0.4); }
.tt-tag.is-slip { color: #ffcfa8; background: rgba(240, 150, 90, 0.14); border: 1px solid rgba(240, 150, 90, 0.5); }
.tt-tag.is-held { color: #bfe3c4; background: rgba(110, 180, 125, 0.1); border: 1px solid rgba(110, 180, 125, 0.35); }
.tt-chip.is-slips b { color: #f0965a; }
