:root, body[data-page="taste-sync"] {
  --gv-surface: var(--gx-s1); --gv-surface-2: var(--gx-s2); --gv-raised: var(--gx-s3);
  --gv-line: var(--gx-line); --gv-line-strong: var(--gx-line-2); --gv-red-soft: var(--gx-red-s);
  --ts-top-h: calc(56px + env(safe-area-inset-top));
  --ts-other-s: #1F3144;
  --ts-rest: 0 1px 2px rgba(4,10,16,.28);
  --ts-lift: 0 4px 12px rgba(4,10,16,.32);
}

/* ---------- Quiet text ---------- */
html body[data-page] :is(.ts-hero__note,.ts-mode,.ts-try__note,.ts-steps p,.ts-try__cta,.ts-send__hint) { display: none; }
html body[data-page] h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
html body[data-page] .ts-hero__invite { color: var(--gx-t2); font-size: 13px; line-height: 20px; }
html body[data-page] .ts-hero { margin-bottom: 12px; }
html body[data-page] #challengeTitle { margin-top: 2px; font-size: 20px; line-height: 28px; font-weight: 700; }

/* The header keeps one size in every view, so nothing above the card moves. */
html body[data-page] .app-shell:is([data-view="result"],[data-view="creator-result"],[data-view="error"]) .ts-hero__invite { display: block; }
html body[data-page] .app-shell:is([data-view="result"],[data-view="creator-result"],[data-view="error"]) #challengeTitle { margin-top: 2px; font-size: 20px; font-weight: 700; color: var(--gx-t1); white-space: normal; overflow: visible; }

/* ---------- Top bar ---------- */
html body[data-page] .ts-top { background: var(--gx-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--gx-line); }
html body[data-page] .ts-top__in { height: 55px; }
html body[data-page] .ts-brand { font-size: 16px; font-weight: 700; border-radius: 12px; }
html body[data-page] .ts-brand img { width: 28px; height: 28px; }
html body[data-page] .ts-navlink { height: 40px; padding: 0 10px; border-radius: 12px; gap: 6px; font-size: 13px; color: var(--gx-t2); transition: background-color .16s linear, color .16s linear; }
html body[data-page] .ts-navlink__icon { display: inline-flex; }
html body[data-page] .ts-navlink__icon .icon { width: 18px; height: 18px; }
html body[data-page] .ts-navlink__ext { display: none; }
@media (hover: hover) and (pointer: fine) {
  html body[data-page] .ts-navlink:hover { background: var(--gx-s1); color: var(--gx-t1); }
  html body[data-page] .gx-lang:hover { background: var(--gx-s2); color: var(--gx-t1); }
}
html body[data-page] .gx-lang { transition: background-color .16s linear, color .16s linear; }
@media (max-width: 359px) { html body[data-page] .ts-navlink__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ---------- Question view fills one screen, never more ---------- */
html body[data-page] .ts-shell { padding-block: 12px 40px; }
html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--ts-top-h));
  min-height: calc(100svh - var(--ts-top-h));
  padding-bottom: 8px; box-sizing: border-box;
}
html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) #experience { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
html body[data-page] :is(.ts-stage,.ts-loading) { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; width: 100%; }
html body[data-page] .ts-loading__head { gap: 12px; }
html body[data-page] .ts-view { position: relative; min-width: 0; }
html body[data-page] .ts-view__old { position: absolute; left: 0; right: 0; top: 0; overflow: clip; pointer-events: none; }
html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) .ts-view { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
html body[data-page] .ts-view__old > .ts-stage { height: 100%; }

html body[data-page] .ts-qmeta { height: 28px; }
html body[data-page] .ts-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; overflow: hidden; border: 0; border-radius: 10px; background: var(--gx-s2); color: var(--gx-t2); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; box-sizing: border-box; }
html body[data-page] .ts-chip .icon { width: 16px; height: 16px; }
html body[data-page] .ts-qcount { color: var(--gx-t3); font-size: 13px; font-weight: 500; }
html body[data-page] .ts-qcount strong { color: var(--gx-t1); font-weight: 700; }
html body[data-page] .ts-progress { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--gx-s2); }
html body[data-page] .ts-progress__fill { border-radius: 2px; transition: transform .36s cubic-bezier(.32,.72,0,1); }
html body[data-page] #questionTitle { margin-top: 12px; font-size: 18px; line-height: 26px; font-weight: 700; }

/* ---------- Panes ---------- */
html body[data-page] .ts-choices { flex: 1 1 auto; min-height: 0; margin-top: 12px; grid-template-rows: minmax(132px,1fr) minmax(132px,1fr); }
html body[data-page] .ts-pane {
  display: block; padding: 0; overflow: hidden; border-radius: var(--gx-r-lg); box-shadow: var(--ts-rest);
  transition: opacity .2s linear, background-color .16s linear;
}
html body[data-page] .ts-pane::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--pane-edge); opacity: 0; transition: opacity .16s linear;
}
html body[data-page] .ts-pane.is-picked { box-shadow: var(--ts-rest); }
html body[data-page] .ts-pane.is-picked::after { opacity: 1; }
html body[data-page] .has-pick .ts-pane:not(.is-picked) { opacity: .5; }
html body[data-page] .ts-pane__body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 36px 16px 16px; box-sizing: border-box; }
html body[data-page] .ts-pane--text .ts-pane__body { padding: 16px; }
/* The VS puck sits on the seam, so the pane next to it keeps its content clear. */
html body[data-page] .ts-pane--a .ts-pane__body { padding-bottom: 32px; }
html body[data-page] .ts-pane--b .ts-pane__body { padding-top: 36px; }
html body[data-page] .ts-pane__body.is-leaving { z-index: 1; pointer-events: none; }
html body[data-page] .ts-pane__media { flex: 1 1 0; min-height: 0; width: 100%; position: relative; display: block; }
html body[data-page] .ts-pane__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; filter: drop-shadow(0 6px 12px rgba(4,10,16,.35)); transition: opacity .2s linear; }
html body[data-page] .ts-pane__media--spray img { aspect-ratio: auto; inset: 6%; width: 88%; height: 88%; }
html body[data-page] .ts-pane__media--card img { filter: none; }
html body[data-page] .ts-pane__media.is-loading::after { inset: 15% 20%; width: auto; height: auto; background: rgba(245,243,239,.06); }
html body[data-page] .ts-pane__fallback { position: absolute; inset: 0; justify-content: center; }
html body[data-page] .ts-pane__label { font-size: 15px; line-height: 22px; font-weight: 600; text-shadow: none; }
html body[data-page] .ts-pane__text { font-size: 20px; line-height: 28px; font-weight: 700; margin: auto 0; }
html body[data-page] .ts-pane__badge { z-index: 3; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
html body[data-page] .ts-pane__chip { position: absolute; top: 12px; left: auto; right: 12px; translate: none; z-index: 3; height: 24px; padding: 0 10px 0 6px; gap: 2px; border-radius: 8px; background: var(--gx-t1); color: var(--gx-bg); font-size: 12px; line-height: 24px; box-sizing: border-box; }
html[dir="rtl"] body[data-page] .ts-pane__chip { right: auto; left: 12px; }
html body[data-page] .ts-vs { width: 44px; height: 44px; border: 0; background: var(--gx-bg); box-shadow: 0 0 0 4px var(--gx-bg); font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--gx-t2); }

/* ---------- Under the panes ---------- */
html body[data-page] .ts-qactions { min-height: 44px; margin-top: 8px; gap: 12px; }
html body[data-page] .ts-qactions .ts-back { height: 40px; min-height: 40px; padding: 0 12px 0 8px; gap: 4px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--gx-t2); transition: opacity .2s linear, background-color .16s linear, color .16s linear; }
html body[data-page] .ts-back:disabled { visibility: visible; opacity: 0; pointer-events: none; }
html body[data-page] .ts-qactions__side { display: grid; justify-items: end; align-items: center; min-width: 0; }
html body[data-page] .ts-qactions__side > * { grid-area: 1 / 1; margin: 0; }
html body[data-page] .ts-last { width: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--gx-red-t); font-size: 13px; line-height: 18px; font-weight: 600; text-align: end; opacity: 0; transition: opacity .2s linear; }
html body[data-page] .ts-last.is-on { opacity: 1; }
html body[data-page] .ts-kbd { transition: opacity .2s linear; }
html body[data-page] .ts-last.is-on + .ts-kbd { opacity: 0; }

/* ---------- Buttons ---------- */
html body[data-page] :is(.primary-action,.secondary-action) { height: 52px; min-height: 52px; border: 0; border-radius: var(--gx-r-md); font-weight: 700; box-shadow: none; transition: background-color .16s linear, color .16s linear; }
html body[data-page] .primary-action { background: var(--gx-red); color: var(--gx-red-ink); box-shadow: var(--ts-rest); font-size: 15px; }
html body[data-page] .secondary-action { background: var(--gx-s2); color: var(--gx-t1); font-size: 15px; }
html body[data-page] .primary-action:active { translate: none; }
html body[data-page] .ts-store a { height: 52px; }
@media (hover: hover) and (pointer: fine) {
  html body[data-page] .primary-action:hover { background: var(--gx-red-2); }
  html body[data-page] .secondary-action:hover { background: var(--gx-s3); }
  html body[data-page] .ts-qactions .ts-back:not(:disabled):hover { background: var(--gx-s1) !important; color: var(--gx-t1); }
}

/* ---------- Try card ---------- */
html body[data-page] .ts-try { margin-top: 24px; border: 0; border-radius: var(--gx-r-lg); background: var(--gx-s1); padding: 16px; }
html body[data-page] .ts-try__title { font-size: 15px; font-weight: 700; }
html body[data-page] .ts-try__count { color: var(--gx-t3); font-size: 13px; }
html body[data-page] .ts-try__count strong { color: var(--gx-t1); font-weight: 700; }
html body[data-page] .ts-try__hint { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--gx-t2); }
html body[data-page] .ts-try__stage { display: grid; margin-top: 12px; }
html body[data-page] .ts-try__stage > * { grid-area: 1 / 1; min-width: 0; }
html body[data-page] .ts-try .ts-choices--sample { margin-top: 0; grid-template-rows: 148px 148px; transition: opacity .2s linear, visibility 0s linear 0s; }
html body[data-page] .ts-try .ts-pane__media { height: auto; flex: 1 1 0; overflow: visible; }
html body[data-page] .ts-try .ts-pane__label { font-size: 14px; line-height: 20px; min-height: 0; -webkit-line-clamp: 1; }
html.js body[data-page] .ts-try[data-state="result"] .ts-choices--sample { opacity: 0; visibility: hidden; transition: opacity .16s linear, visibility 0s linear .16s; }
html body[data-page] .ts-try__result { height: auto; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
html:not(.js) body[data-page] .ts-try__stage > * { grid-area: auto; }
html body[data-page] .ts-try__result .ts-score { font-size: 64px; }
html body[data-page] .ts-try__line { min-height: 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--gx-t2); }
html body[data-page] .ts-try__strip { width: 200px; margin: 4px 0 0; }
html body[data-page] .ts-try__controls { gap: 8px; margin-top: 12px; }
html body[data-page] .ts-try__controls .ts-back { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-height: 44px; min-width: 0; border: 0; border-radius: 12px; background: var(--gx-s2); color: var(--gx-t1); font-size: 14px; font-weight: 600; transition: background-color .16s linear; }
html body[data-page] .ts-try__controls .ts-back::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ts-ic) center / contain no-repeat; mask: var(--ts-ic) center / contain no-repeat; }
html body[data-page] .ts-try__controls [data-ys-demo-pause] { --ts-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%226%22 y=%224.500%22 width=%224%22 height=%2215%22 rx=%221.200%22/%3E%3Crect x=%2214%22 y=%224.500%22 width=%224%22 height=%2215%22 rx=%221.200%22/%3E%3C/svg%3E"); }
html body[data-page] .ts-try__controls [data-ys-demo-pause][aria-pressed="true"] { --ts-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M7 4.800v14.400c0 .8.900 1.300 1.500.9l11.300-7.200c.6-.4.6-1.400 0-1.800L8.500 3.900C7.900 3.500 7 4 7 4.800z%22/%3E%3C/svg%3E"); }
html body[data-page] .ts-try__controls [data-ys-demo-replay] { --ts-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.200%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 12a8 8 0 1 0 2.400-5.700L4 8.600M4 4v4.600h4.600%22/%3E%3C/svg%3E"); }
@media (hover: hover) and (pointer: fine) { html body[data-page] .ts-try__controls .ts-back:hover { background: var(--gx-s3); color: var(--gx-t1); } }
html body[data-page] .ts-intro__get { margin-top: 16px; }
html body[data-page] .ts-intro__note { font-size: 12px; line-height: 18px; color: var(--gx-t3); }

/* ---------- Intro ---------- */
html body[data-page] #introTitle { font-size: 26px; line-height: 34px; font-weight: 700; margin-top: 16px; }
html body[data-page] .ts-appid img { width: 44px; height: 44px; border-radius: 12px; }
html body[data-page] .ts-appid strong { font-size: 15px; line-height: 20px; }
html body[data-page] .ts-appid span span { font-size: 13px; line-height: 18px; color: var(--gx-t3); }
html body[data-page] .ts-intro__lead { font-size: 15px; line-height: 24px; margin-top: 8px; }
html body[data-page] .ts-how { margin-top: 32px; padding-top: 0; border-top: 0; }
html body[data-page] :is(.ts-how,.gv-more) h2 { font-size: 17px; font-weight: 700; line-height: 24px; }
html body[data-page] .ts-steps { display: grid; gap: 0; margin-top: 12px; padding: 4px 16px; border-radius: var(--gx-r-lg); background: var(--gx-s1); }
html body[data-page] .ts-steps > li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; min-height: 64px; padding: 0; border: 0; }
html body[data-page] .ts-steps__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--gx-s2); color: var(--gx-t2); }
html body[data-page] .ts-steps__num .icon { width: 20px; height: 20px; }
html body[data-page] .ts-steps h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
html body[data-page] .gv-more { margin-top: 32px; padding-top: 0; border-top: 0; }

/* ---------- Result ---------- */
html body[data-page] .ts-result { gap: 12px; }
html body[data-page] .ts-result__hero { padding: 28px 20px 24px; border-radius: var(--gx-r-lg); background: var(--gx-s1); box-shadow: none; }
html body[data-page] .ts-duo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
html body[data-page] .ts-duo__pair { display: flex; }
html body[data-page] .ts-tile { width: 52px; height: 52px; border: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--gx-s1); transform: none; font-size: 18px; }
html body[data-page] .ts-tile--me { background: var(--gx-red-s); color: var(--gx-red-t); }
html body[data-page] .ts-tile--other { margin-inline-start: -10px; background: var(--ts-other-s); color: var(--ts-a-edge); }
html body[data-page] :is(.ts-tile__mono,.ts-tile__word) { font-size: 18px; font-weight: 700; }
html body[data-page] .ts-tile__word { font-size: 15px; }
html[lang="ko"] body[data-page] .ts-tile__word { font-size: 18px; }
html body[data-page] .ts-tile__name { margin: 0; max-width: 100%; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--gx-t3); }
html body[data-page] .ts-score { display: flex; justify-content: center; align-items: flex-end; white-space: nowrap; font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--gx-t1); }
html body[data-page] .ts-score__unit { font-size: .5em; line-height: 1; padding-bottom: .22em; font-weight: 700; color: var(--gx-t3); }
html body[data-page] #resultTitle { margin-top: 12px; font-size: 20px; line-height: 28px; font-weight: 700; }
html body[data-page] .ts-result__sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--gx-t2); }
html body[data-page] .ts-strip { width: min(100%,280px); margin-top: 16px; }
html body[data-page] .ts-strip > span { height: 6px; border-radius: 3px; background: var(--gx-s3); transition: background-color .2s linear; }
html body[data-page] .ts-strip > .is-same { background: var(--gx-red); }

/* Send card */
html body[data-page] :is(.ts-send,.ts-actions) { padding: 20px; border-radius: var(--gx-r-lg); background: var(--gx-s1); }
html body[data-page] .ts-send__title { font-size: 17px; line-height: 24px; font-weight: 700; }
html body[data-page] .field-label { margin: 12px 0 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--gx-t2); }
html body[data-page] .name-field { gap: 8px; }
html body[data-page] :is(input[type="text"],#responderName,.name-input,.share-url-input) { height: 52px; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--gx-r-md); background: var(--gx-s2); color: var(--gx-t1); box-sizing: border-box; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .16s linear, background-color .16s linear; }
html body[data-page] :is(#responderName,.share-url-input):focus { outline: 0; background: var(--gx-s2); box-shadow: inset 0 0 0 2px var(--gx-red-t); }
html body[data-page] .name-input::placeholder { color: var(--gx-t3); }
html body[data-page] .status-text { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--gx-t2); }
html body[data-page] .status-text:not(:empty) { animation: ts-fade .2s linear; }
html body[data-page] :is(.share-fallback,.app-fallback) { margin-top: 8px; animation: ts-fade .2s linear; }
html body[data-page] .share-fallback .field-label { margin: 0 0 8px; }
html body[data-page] .app-fallback p { font-size: 13px; line-height: 20px; }
html body[data-page] .app-fallback .ts-store { margin-top: 8px; }

/* Keyboard open: the send card is the thing being used, so it stays. */
html.gx-kb body[data-page] .ts-send { visibility: visible !important; }

/* Icon rows under the send button */
html body[data-page] .ts-more { display: grid; gap: 0; margin: 12px -8px -8px; padding: 0; border: 0; }
html body[data-page] .ts-more .secondary-action { justify-content: flex-start; gap: 12px; height: 56px; min-height: 56px; padding: 0 8px; border: 0; border-radius: var(--gx-r-md); background: var(--gx-s1); color: var(--gx-t1); font-size: 15px; font-weight: 600; }
html body[data-page] .ts-more .icon { box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 12px; background: var(--gx-s2); color: var(--gx-t2); }
@media (hover: hover) and (pointer: fine) { html body[data-page] .ts-more .secondary-action:hover { border-radius: var(--gx-r-md); background: var(--gx-s2); } }
html body[data-page] .ts-actions > .secondary-action { margin-top: 8px; }

/* Both picked */
html body[data-page] .ts-both { padding: 20px; border-radius: var(--gx-r-lg); background: var(--gx-s1); }
html body[data-page] .ts-both__label { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--gx-t1); }
html body[data-page] .ts-both__media { position: relative; margin-top: 12px; aspect-ratio: auto; height: 136px; border-radius: var(--gx-r-md); background: var(--gx-s2); }
html body[data-page] .ts-both__media img { max-width: 80%; max-height: 104px; filter: drop-shadow(0 4px 8px rgba(4,10,16,.3)); }
html body[data-page] .ts-both__name { margin-top: 12px; font-size: 15px; line-height: 22px; font-weight: 600; }
html body[data-page] .ts-both__meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--gx-t3); }
html body[data-page] .ts-both__text { font-size: 20px; line-height: 28px; border-radius: var(--gx-r-md); }

/* By category */
html body[data-page] .ts-cats { padding: 8px 20px; border-radius: var(--gx-r-lg); background: var(--gx-s1); }
html body[data-page] .ts-cats h3 { padding: 12px 0 4px; font-size: 15px; line-height: 22px; font-weight: 700; }
html body[data-page] .score-row { min-height: 56px; padding: 8px 0; }
html body[data-page] .score-row + .score-row { border-top: 0; }
html body[data-page] .score-row-type { font-size: 14px; line-height: 20px; font-weight: 600; }
html body[data-page] .score-row-count { font-size: 12px; line-height: 18px; color: var(--gx-t3); }
html body[data-page] .score-bar { height: 6px; background: var(--gx-s3); border-radius: 3px; }
html body[data-page] .score-row-value { font-size: 14px; }

/* All picks */
html body[data-page] .ts-list { overflow: clip; border-radius: var(--gx-r-lg); background: var(--gx-s1); }
html body[data-page] .ts-list summary { height: 56px; padding: 0 20px; border-radius: var(--gx-r-lg); background: var(--gx-s1); font-size: 15px; font-weight: 700; transition: background-color .16s linear; }
html body[data-page] .ts-list[open] summary { border-radius: var(--gx-r-lg); }
html body[data-page] .ts-list summary .icon { width: 20px; height: 20px; color: var(--gx-t3); transition: transform .28s cubic-bezier(.32,.72,0,1); }
html body[data-page] .ts-list.gx-closing summary .icon { transform: none; }
@media (hover: hover) and (pointer: fine) { html body[data-page] .ts-list summary:hover { background: var(--gx-s2); } }
html body[data-page] .ts-rows { padding: 0 20px 8px; border-radius: 0; background: none; }
html body[data-page] .ts-row { grid-template-columns: 28px minmax(0,1fr); gap: 8px 8px; padding: 12px 0; border-top: 1px solid var(--gx-line); box-shadow: none; }
html body[data-page] .ts-row.is-same { box-shadow: none; }
html body[data-page] .ts-row__num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gx-s2); color: var(--gx-t3); font-size: 12px; font-weight: 600; }
html body[data-page] .ts-row.is-same .ts-row__num { background: var(--gx-red-s); color: var(--gx-red-t); }
html body[data-page] .ts-row__thumb { width: 56px; height: 40px; border-radius: 10px; }
html body[data-page] .ts-who { padding: 0 8px; height: 20px; line-height: 20px; border-radius: 6px; font-size: 12px; }
html body[data-page] .ts-who--me { background: var(--gx-red-s); color: var(--gx-red-t); }
html body[data-page] .ts-who--other { background: var(--ts-other-s); color: var(--ts-a-edge); }

/* App card */
html body[data-page] .ts-app { padding: 20px; border-radius: var(--gx-r-lg); background: var(--gx-s1); gap: 12px; }
html body[data-page] .ts-app__name { font-size: 15px; line-height: 22px; }
html body[data-page] .ts-app__line { font-size: 13px; line-height: 20px; color: var(--gx-t2); }

/* ---------- Error ---------- */
html body[data-page] .ts-error { display: flex; flex-direction: column; align-items: center; max-width: 440px; margin-inline: auto; padding: 32px 0 16px; text-align: center; }
html body[data-page] .ts-error__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--gx-red-s); color: var(--gx-red-t); }
html body[data-page] .ts-error__mark .icon { width: 28px; height: 28px; }
html body[data-page] .ts-error :is(h1,h2) { margin-top: 16px; font-size: 20px; line-height: 28px; font-weight: 700; }
html body[data-page] .ts-error__reason { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--gx-t2); }
html body[data-page] .ts-error__fix { margin-top: 0; font-size: 14px; line-height: 22px; color: var(--gx-t3); }
html body[data-page] .ts-error .ts-store { width: 100%; margin-top: 24px; }

/* ---------- Footer ---------- */
html body[data-page] .ts-footer { border-top: 1px solid var(--gx-line); background: var(--gx-bg); }
html body[data-page] .ts-footer__brand { font-size: 13px; font-weight: 600; }
html body[data-page] .ts-footer__notice a { display: inline; min-height: 0; padding-block: 12px; color: var(--gx-t2); }

/* ---------- Sheet handle gets a press like every other control ---------- */
.gx-sheet-grab { position: relative; }
.gx-sheet-grab::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 20px; margin: -10px 0 0 -28px; border-radius: 10px; background: rgba(245,243,239,0); transition: background-color .16s linear, transform .16s var(--gx-ease); pointer-events: none; }
.gx-sheet-grab:active::after { background: rgba(245,243,239,.08); transform: scale(1.08); }

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  :root, body[data-page="taste-sync"] { --ts-top-h: calc(64px + env(safe-area-inset-top)); }
  html body[data-page] .ts-top__in { height: 63px; }
  html body[data-page] .ts-brand { font-size: 17px; }
  html body[data-page] .ts-navlink__ext { display: inline-flex; color: var(--gx-t3); }
  html body[data-page] .ts-shell { padding-block: 24px 64px; }
  html body[data-page] #challengeTitle, html body[data-page] .app-shell:is([data-view="result"],[data-view="creator-result"],[data-view="error"]) #challengeTitle { font-size: 24px; line-height: 32px; }
  html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) { padding-bottom: 16px; }
  html body[data-page] .ts-choices { grid-template-rows: minmax(220px,1fr); max-height: 640px; }
  html body[data-page] .ts-pane__body { padding: 48px 24px 24px; gap: 12px; }
  html body[data-page] .ts-pane--a .ts-pane__body { padding: 48px 40px 24px 24px; }
  html body[data-page] .ts-pane--b .ts-pane__body { padding: 48px 24px 24px 40px; }
  html body[data-page] .ts-pane__label { font-size: 17px; line-height: 24px; }
  html body[data-page] .ts-pane__text { font-size: 24px; line-height: 32px; }
  html body[data-page] .ts-vs { width: 52px; height: 52px; font-size: 13px; }
  html body[data-page] .ts-try .ts-choices--sample { grid-template-rows: 280px; }
  html body[data-page] .ts-try .ts-pane--a .ts-pane__body { padding: 40px 32px 16px 16px; }
  html body[data-page] .ts-try .ts-pane--b .ts-pane__body { padding: 40px 16px 16px 32px; }
  html body[data-page] .ts-try__controls .ts-back { flex: 0 1 auto; padding: 0 16px; }
  html body[data-page] .ts-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  html body[data-page] .ts-both__media { height: 168px; }
  html body[data-page] .ts-both__media img { max-height: 136px; }
  html body[data-page] .ts-row { grid-template-columns: 28px minmax(0,1fr) minmax(0,1fr); gap: 16px; }
  html body[data-page] .ts-error { padding-top: 56px; }
  html body[data-page] .ts-error .ts-store { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  html body[data-page] .ts-shell { padding-block: 32px 72px; }
  html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) { padding-bottom: 24px; }
  html body[data-page] .ts-hero { margin-bottom: 16px; }
  html body[data-page] #introTitle { font-size: 36px; line-height: 46px; }
  html body[data-page] .ts-intro__lead { font-size: 16px; line-height: 26px; }
  html body[data-page] .ts-how { margin-top: 56px; }
  /* Sticky is bound by the whole grid, not its area: the send card gets a column of its own so it never rides over a card. */
  html body[data-page] .ts-result { grid-template-columns: minmax(0,1fr) 360px; grid-template-areas: "hero send" "both send" "cats send" "list send" "app send"; grid-template-rows: repeat(5,auto); align-content: start; column-gap: 24px; row-gap: 12px; }
  html body[data-page] .ts-result > :is(.ts-result__hero,.ts-both,.ts-cats,.ts-list,.ts-app) { min-width: 0; }
  html body[data-page] .ts-app { grid-template-columns: 48px minmax(0,1fr); }
  html body[data-page] .ts-app .ts-store { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  html body[data-page] .ts-result__hero { padding: 40px 32px 32px; }
  html body[data-page] .ts-tile { width: 64px; height: 64px; }
  html body[data-page] :is(.ts-tile__mono,.ts-tile__word) { font-size: 22px; }
  html body[data-page] .ts-tile__word { font-size: 17px; }
  html[lang="ko"] body[data-page] .ts-tile__word { font-size: 22px; }
  html body[data-page] .ts-score { font-size: 88px; }
  html body[data-page] #resultTitle { font-size: 24px; line-height: 32px; }
  html body[data-page] :is(.ts-send,.ts-actions) { top: calc(var(--ts-top-h) + 16px); }
  html body[data-page] .ts-error :is(h1,h2) { font-size: 24px; line-height: 32px; }
}
/* Portrait tablets have height to spare: stack the panes so the art gets bigger. */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  html body[data-page] .ts-stage .ts-choices { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(220px,1fr) minmax(220px,1fr); gap: 4px; max-height: none; }
  html body[data-page] .ts-stage .ts-pane--a .ts-pane__body { padding: 48px 32px 40px; }
  html body[data-page] .ts-stage .ts-pane--b .ts-pane__body { padding: 48px 32px 24px; }
}
/* Phones on their side: one compact header row, so both panes stay on screen. */
@media (max-height: 520px) and (orientation: landscape) {
  :root, body[data-page="taste-sync"] { --ts-top-h: calc(48px + env(safe-area-inset-top)); }
  html body[data-page] .ts-top__in { height: 47px; }
  html body[data-page] .ts-shell { padding-block: 8px 24px; }
  html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) { padding-bottom: 4px; }
  html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) .ts-hero__invite { display: none; }
  html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) #challengeTitle { margin: 0; font-size: 15px; line-height: 20px; color: var(--gx-t2); }
  html body[data-page] #tasteSyncApp:is([data-view="question"],[data-view="loading"]) .ts-hero { margin-bottom: 4px; }
  html body[data-page] .ts-qhead { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; column-gap: 12px; }
  html body[data-page] .ts-qmeta { display: contents; }
  html body[data-page] .ts-chip { grid-area: 1 / 1; }
  html body[data-page] .ts-qcount { grid-area: 1 / 3; }
  html body[data-page] #questionTitle { grid-area: 1 / 2; margin: 0; font-size: 15px; line-height: 28px; }
  html body[data-page] .ts-progress { grid-area: 2 / 1 / 2 / 4; margin-top: 4px; }
  html body[data-page] .ts-stage .ts-choices { margin-top: 8px; grid-template-rows: minmax(148px,1fr); max-height: none; }
  html body[data-page] .ts-stage .ts-pane--a .ts-pane__body { padding: 12px 36px 8px 44px; }
  html body[data-page] .ts-stage .ts-pane--b .ts-pane__body { padding: 12px 44px 8px 36px; }
  html body[data-page] .ts-stage .ts-pane__label { font-size: 14px; line-height: 20px; -webkit-line-clamp: 1; }
  html body[data-page] .ts-qactions { min-height: 40px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html body[data-page] :is(.ts-pane,.ts-last,.ts-progress__fill,.status-text,.share-fallback,.app-fallback,.ts-choices--sample) { transition: none; animation: none; }
}
@keyframes ts-fade { from { opacity: 0; } }
