/* ------------------------------------------------------------------
   tools/assets/thumbnail-checker.css (v=2, 2026-10-19): the page-only
   parts of /tools/roblox-thumbnail-size. Loaded after /tools/assets/tools.css
   on <body class="sl tl tc">. Shared pieces (.tl-panel, .tl-drop, .tl-checks,
   .tl-result, .tl-ways, .tl-tiles, .tl-snippet) come from tools.css as they are.

   Components, all .tc-*:
     .tc-answer: the dated sizes answer under the checker (.tc-specs + .tc-spec
       cards with a drawn shape: .tc-shape, .tc-shape-box(.is-wide,
       .is-square, .is-circle), .tc-spec-big, .tc-spec-list)
     the checker: .tc-file-input (visually hidden), .tc-stage (the preview:
       .tc-stage-head, .tc-frame(.is-thumb/.is-icon/.is-badge) with
       .tc-band and .tc-ring, .tc-smalls + .tc-small, .tc-noimg), .tc-filebar,
       .tc-verdict(.is-ok/.is-fix), .tc-fixes, .tc-suggest, .tc-sample
     sections: .tc-how (3 numbered cards), .tc-shapes + .tc-crop (one loop
       cropped to 16:9 and to a square), .tc-mistakes + .tc-mini (small
       drawn examples), .tc-final-media
   Nothing rests at opacity 0; prefers-reduced-motion removes transitions.
   ------------------------------------------------------------------ */

/* ---------- the dated sizes answer ---------- */
.tc-answer { width: 100%; max-width: 1040px; margin: 36px auto 0; text-align: left; }
/* the hero sits a little higher here, so the checker starts near the fold */
body.tc main > .section.sl-hero { padding-top: 64px; }
.tc-answer .sl-answer-label { justify-content: center; }
.tc-answer-text { max-width: 64ch; margin: 0 auto; font-size: 17px; line-height: 1.6; text-align: center; color: #e6def3; text-wrap: balance; }
.tc-specs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.tc-spec {
  display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .08), rgba(255, 255, 255, .015)), #15101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tc-spec.is-main { border-color: rgba(167, 139, 250, .32); background: linear-gradient(180deg, rgba(139, 92, 246, .15), #15101f 70%); }
.tc-spec-top { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tc-spec-top > div:last-child { min-width: 0; }
.tc-shape { display: grid; place-items: center; flex: none; height: 64px; margin: 0; }
.tc-shape-box {
  position: relative; display: grid; place-items: center; height: 100%; border: 1.5px solid rgba(196, 181, 253, .75); border-radius: 8px;
  background:
    linear-gradient(rgba(167, 139, 250, .12) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, rgba(167, 139, 250, .12) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(139, 92, 246, .08);
}
.tc-shape-box.is-wide { aspect-ratio: 16 / 9; }
.tc-shape-box.is-square { aspect-ratio: 1; }
.tc-shape-box.is-circle { aspect-ratio: 1; border-style: dashed; border-color: rgba(196, 181, 253, .45); }
.tc-shape-box.is-circle::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(196, 181, 253, .8); border-radius: 50%; background: rgba(139, 92, 246, .14); }
/* the player count strip, drawn at an approximate height (Roblox publishes none) */
.tc-shape-box.is-wide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; border-top: 1px dashed rgba(242, 181, 90, .7); border-radius: 0 0 7px 7px; background: rgba(242, 181, 90, .14); }
.tc-shape-ratio { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #e6def3; }
.tc-spec-name { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #a78bfa; }
.tc-spec-big { margin: 4px 0 0; font-size: clamp(26px, 1.1rem + 1.2vw, 34px); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; color: #f6f1ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-spec-sub { margin: 3px 0 0; font-size: 13px; line-height: 1.35; color: #8f84a3; }
.tc-spec-list { display: grid; gap: 6px 18px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .06); list-style: none; }
.tc-spec-list.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-spec-list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--rc-text-2); }
.tc-spec-list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; }
.tc-spec-list code { font-family: var(--rc-font-mono); font-size: 13px; color: #e6def3; }
.tc-answer .tl-source { max-width: none; margin-top: 14px; }

/* ---------- the checker ---------- */
.tc-mode { margin: 0 0 18px; }
.tc-file-input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.tc-file-input:focus-visible + .tl-drop { outline: 2px solid var(--rc-focus); outline-offset: 3px; }
.tc-file-input:focus-visible ~ .tc-stage .tc-again { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
.tc-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tc-left .tl-drop { min-height: 260px; }
.tc-drop-or { margin: 0; font-size: 12.5px; color: #8f84a3; }
.tc-sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 0; font-size: 13px; color: #8f84a3; }
.tc-tool.is-dragging .tl-drop, .tc-tool.is-dragging .tc-frame { border-color: #c4b5fd; }

.tc-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tc-stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0; }
.tc-stage-title { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a78bfa; }
.tc-stage-note { font-size: 12.5px; line-height: 1.4; color: #8f84a3; }
.tc-frame {
  position: relative; width: 100%; margin: 0 auto; overflow: hidden; border: 1px solid rgba(233, 226, 250, .16); border-radius: 12px;
  background: repeating-conic-gradient(#1b1622 0% 25%, #221c2b 0% 50%) 50% / 20px 20px;
}
.tc-frame > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.tc-frame.is-thumb { aspect-ratio: 16 / 9; }
.tc-frame.is-thumb > img { object-fit: fill; } /* Roblox stretches a thumbnail of any shape to 16:9 */
.tc-frame.is-icon, .tc-frame.is-badge { aspect-ratio: 1; max-width: 300px; }
.tc-frame.is-icon > img, .tc-frame.is-badge > img { object-fit: cover; }
.tc-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18%; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px;
  border-top: 1.5px dashed rgba(242, 181, 90, .9); background: rgba(12, 11, 16, .62);
  font-size: 12px; font-weight: 600; line-height: 1.2; color: #f7d08a; text-align: right; pointer-events: none;
}
.tc-band[hidden] { display: none; }
/* the label gets its own dark pill, so it stays readable over any image (the strip itself stays see-through) */
.tc-band span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: rgba(12, 11, 16, .92); }
.tc-verdict:focus { outline: none; }
.tc-verdict:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
.tc-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(12, 11, 16, .74); outline: 1.5px dashed rgba(196, 181, 253, .9); outline-offset: -1px; pointer-events: none; }
.tc-noimg { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 180px; padding: 20px; border: 1px dashed rgba(233, 226, 250, .18); border-radius: 12px; text-align: center; font-size: 14px; line-height: 1.5; color: #b7abc8; }
.tc-noimg strong { color: #f6f1ff; }
.tc-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13.5px; color: #cfc3e0; cursor: pointer; }
.tc-toggle input { width: 18px; height: 18px; margin: 0; accent-color: #8b5cf6; }

.tc-smalls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; margin: 0; padding: 0; list-style: none; }
.tc-small { display: grid; justify-items: start; gap: 6px; margin: 0; min-width: 0; }
.tc-small-box { position: relative; overflow: hidden; border: 1px solid rgba(233, 226, 250, .16); border-radius: 6px; background: repeating-conic-gradient(#1b1622 0% 25%, #221c2b 0% 50%) 50% / 12px 12px; }
.tc-small-box > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.tc-small-box.is-fill > img { object-fit: fill; }
.tc-small-box.is-cover > img { object-fit: cover; }
.tc-small-box.is-contain > img { object-fit: contain; }
.tc-small-box.is-round { border-radius: 50%; }
.tc-small figcaption { font-size: 12px; line-height: 1.3; color: #8f84a3; font-variant-numeric: tabular-nums; }

.tc-filebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.tc-filename { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: #e6def3; }
.tc-again { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; cursor: pointer; border: 1px solid rgba(233, 226, 250, .16); border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 600; color: #e6def3; transition: border-color .16s ease, background-color .16s ease; }
.tc-again:hover { border-color: rgba(233, 226, 250, .3); background: rgba(255, 255, 255, .07); }

/* the result column */
.tc-result { gap: 0; }
.tc-verdict {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 30px; margin: 0 0 16px; padding: 4px 12px 4px 10px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
.tc-verdict::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tc-verdict.is-ok { color: #6ee7b7; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); }
.tc-verdict.is-fix { color: #f7c776; background: rgba(242, 181, 90, .12); border: 1px solid rgba(242, 181, 90, .32); }
.tc-verdict.is-bad { color: #fca5a5; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .3); }
.tc-result .tl-figure-value { font-size: clamp(34px, 1.4rem + 2vw, 48px); }
.tc-result .tl-figure-sub { overflow-wrap: anywhere; }
.tc-result .tl-checks { margin-top: 18px; }
.tc-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(167, 139, 250, .3); border-radius: 12px; background: rgba(139, 92, 246, .1); font-size: 14px; line-height: 1.45; color: #e6def3; }
.tc-suggest .tl-chip { min-height: 36px; }
.tc-fixes { margin: 18px 0 0; padding: 16px 16px 16px 18px; border: 1px solid rgba(242, 181, 90, .26); border-radius: 14px; background: rgba(242, 181, 90, .06); }
.tc-fixes-title { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f2b55a; }
.tc-fixes ol { display: grid; gap: 8px; margin: 0; padding: 0 0 0 20px; }
.tc-fixes li { padding-left: 2px; font-size: 14.5px; line-height: 1.5; color: #e6def3; }
.tc-fixes li::marker { font-weight: 700; color: #f2b55a; }
.tc-result .tl-actions { margin-top: 18px; }
.tc-result .tl-actions .btn { white-space: normal; text-align: center; }
.tc-done { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #6ee7b7; }
.tc-done .tl-chip { margin-left: 6px; }
.tc-error { margin: 0; padding: 14px 16px; border: 1px solid rgba(248, 113, 113, .3); border-radius: 12px; background: rgba(248, 113, 113, .08); font-size: 14.5px; line-height: 1.5; color: #fecaca; }
.tc-result .tl-empty { display: grid; place-items: center; gap: 14px; }
/* before an image: Roblox's three sizes, so the result half is not blank */
.tc-idle-lead { margin: 0; font-size: 14px; font-weight: 600; color: #cfc3e0; }
.tc-idle-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.tc-idle-specs li { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 14px 10px; border: 1px dashed rgba(167, 139, 250, .28); border-radius: 14px; background: rgba(139, 92, 246, .04); }
.tc-idle-specs li.is-main { border-color: rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .08); }
.tc-idle-big { font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #f6f1ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-idle-what { font-size: 12.5px; line-height: 1.35; color: #b7abc8; }
.tc-idle-checks { margin: 0; max-width: 36ch; font-size: 13px; line-height: 1.5; color: #8f84a3; }
.tc-noscript { margin: 16px 0 0; }

/* ---------- how to use it: three numbered cards ---------- */
.tc-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.tc-how > li { min-width: 0; padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: #15101f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tc-how-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; color: #c4b5fd; background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .4); }
.tc-how h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; color: #f6f1ff; }
.tc-how p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rc-text-2); text-wrap: pretty; }
.tc-how + .tl-ways { margin-top: 40px; }

/* ---------- icon vs thumbnail: one loop, two crops ---------- */
.tc-shapes { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.tc-shape-card { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 22px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; background: #15101f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tc-shape-card.is-icon .tc-crop { width: min(100%, 62%); align-self: center; }
.tc-crop { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(233, 226, 250, .12); border-radius: 14px; background: #0d0a14 center / cover no-repeat; }
.tc-crop.is-wide { aspect-ratio: 16 / 9; }
.tc-crop.is-square { aspect-ratio: 1; }
.tc-crop > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-crop-dim { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(12, 11, 16, .76); font-size: 12px; font-weight: 600; color: #f6f1ff; font-variant-numeric: tabular-nums; pointer-events: none; }
.tc-shape-card h3 { margin: 18px 4px 4px; font-size: 19px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; color: #f6f1ff; }
.tc-shape-card .tc-shape-sub { margin: 0 4px; font-size: 14px; color: #a78bfa; font-weight: 600; }
.tc-shape-card .sl-ticks { margin: 14px 4px 0; }
.tc-shape-card .sl-ticks li { font-size: 14.5px; }

/* ---------- common mistakes: small drawn examples ---------- */
.tc-mistakes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.tc-mistake { display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 20px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: #15101f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.tc-mistake h3 { margin: 16px 6px 6px; font-size: 16.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #f6f1ff; }
.tc-mistake p { margin: 0 6px; font-size: 14px; line-height: 1.5; color: var(--rc-text-2); text-wrap: pretty; }
.tc-mistake p + p { margin-top: 8px; }
.tc-mistake .tc-fix { color: #e6def3; }
.tc-mistake .tc-fix strong { color: #6ee7b7; font-weight: 600; }
.tc-mini {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px;
  border: 1px solid rgba(233, 226, 250, .1); background: #0f0c16 center / cover no-repeat;
}
.tc-mini-sq { height: 100%; aspect-ratio: 1; background: center / cover no-repeat; transform: scaleX(1.7778); }
.tc-mini-label {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(12, 11, 16, .78); font-size: 11.5px; font-weight: 600; color: #f6f1ff; white-space: nowrap;
}
.tc-mini-label.is-bad { color: #fca5a5; }
.tc-mini .tc-band { height: 24%; font-size: 11px; background: rgba(12, 11, 16, .8); }
.tc-mini-meter { display: grid; gap: 10px; width: min(78%, 260px); }
.tc-mini-file { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: #b7abc8; }
.tc-mini-file b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: #fca5a5; font-variant-numeric: tabular-nums; }
.tc-mini-track { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tc-mini-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d28d9 0%, #a78bfa 62%, #f87171 62%, #f87171 100%); }
.tc-mini-mark { position: absolute; left: 62%; top: -6px; bottom: -6px; width: 2px; border-radius: 2px; background: #f6f1ff; }
.tc-mini-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: #8f84a3; font-variant-numeric: tabular-nums; }
.tc-mini-scale span:nth-child(2) { margin-left: 24%; color: #e6def3; font-weight: 600; }
.tc-mini-exts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 86%; margin: 0; padding: 0; list-style: none; }
.tc-mini-exts li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; font-family: var(--rc-font-mono); font-size: 13px; font-weight: 600; }
.tc-mini-exts .is-ok { color: #6ee7b7; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .28); }
.tc-mini-exts .is-bad { color: #fca5a5; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .28); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tc-mini-pair { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.tc-mini-pair figure { display: grid; justify-items: center; gap: 8px; margin: 0; }
.tc-mini-icon { display: block; width: 104px; height: 104px; border-radius: 12px; background: center / cover no-repeat; border: 1px solid rgba(233, 226, 250, .16); }
.tc-mini-icon.is-soft { filter: blur(2.4px) saturate(.9); }
.tc-mini-pair figcaption { font-size: 11.5px; font-weight: 600; color: #b7abc8; font-variant-numeric: tabular-nums; }
.tc-mini-pair figure.is-bad figcaption { color: #fca5a5; }
.tc-mini-round { position: relative; height: 84%; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: center / cover no-repeat; }
.tc-mini-round .tc-ring { outline-width: 1.5px; }
.tc-mini-cut { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 2px 6px; border-radius: 6px; background: #f2b55a; font-size: 11px; font-weight: 800; color: #1b1622; }

/* ---------- the closing hand-off ---------- */
.tc-final-media { margin: 0; min-width: 0; }
.tc-final-media .sl-frame { aspect-ratio: 16 / 10; }
.tc-final .final-inner h2 { max-width: 15ch; }
.tc-final .final-actions .btn { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.tc-final .micro-row { line-height: 1.6; }
.tc-link-box { max-width: 760px; margin: 40px auto 0; }
.tc-link-box .tl-snippet-head { font-size: 13px; }

/* the poster behind the drawn examples and the crops: after every background shorthand above, so it wins */
.tc .tc-poster { background-image: url(/videos/guide-roblox-simulator-game-poster-v1.webp); }

/* ---------- layout steps ---------- */
@media (max-width: 1000px) {
  .tc-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-spec.is-main { grid-column: 1 / -1; }
  .tc-mistakes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .tc-final-media { margin-top: 40px; }
}
@media (max-width: 820px) {
  .tc-how { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .tc-shapes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .tc-shape-card.is-icon .tc-crop { width: min(100%, 300px); }
}
@media (max-width: 640px) {
  .tc-answer { margin-top: 32px; }
  .tc-answer-text { font-size: 16px; text-align: left; }
  .tc-answer .sl-answer-label { justify-content: flex-start; }
  .tc-specs { grid-template-columns: minmax(0, 1fr); }
  .tc-spec { padding: 16px 16px 18px; }
  .tc-shape { height: 56px; }
  .tc-spec-list.is-2 { grid-template-columns: minmax(0, 1fr); }
  .tc-mini-icon { width: 84px; height: 84px; }
  .tc-left .tl-drop { min-height: 190px; }
  .tc-mistakes { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .tc-frame.is-icon, .tc-frame.is-badge { max-width: 240px; }
  .tc-result .tl-actions .btn { width: 100%; }
  /* checks: the value goes under the text, so the reason has room */
  .tc-result .tl-check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; }
  .tc-result .tl-check-value { grid-column: 2; text-align: left; }
  /* the three sizes before an image: one row each on a phone */
  .tc-idle-specs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tc-idle-specs li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px; }
  .tc-idle-big { font-size: 18px; }
  .tc-idle-what { text-align: right; }
}

/* ---------- reduced motion: no transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  .tc-again { transition: none; }
}
