/* GTA 6 AI 照片生成器（gta-photo）：样式全部带 gx- 前缀，只作用在工具自己身上 */
.gx { --f-surface-3: color-mix(in srgb, var(--f-ink) 13%, var(--f-bg)); --f-gold-bg: color-mix(in srgb, var(--f-gold) 13%, var(--f-bg)); --f-pink-bg: color-mix(in srgb, var(--f-pink) 12%, var(--f-bg)); }
.gx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gx-i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ---------- generator ---------- */
.gx { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); grid-template-areas: "stage picker" "stage ctl"; grid-template-rows: auto 1fr; column-gap: 36px; padding: 8px 0; align-items: start; }

.gx-card { background: var(--f-surface); border: 1px solid var(--f-line); }
.gx-picker { grid-area: picker; padding: 20px 22px 18px; border-radius: var(--f-r-panel) var(--f-r-panel) 0 0; border-bottom: 0; }
.gx-ctl { grid-area: ctl; display: grid; gap: 22px; padding: 4px 22px 0; border-radius: 0 0 var(--f-r-panel) var(--f-r-panel); border-top: 0; }
.gx-step { display: grid; gap: 12px; min-width: 0; }
fieldset.gx-step { margin: 0; padding: 0; border: 0; }
.gx-picker legend.gx-step__head { padding: 0; margin-bottom: 12px; width: 100%; }
.gx-step + .gx-step, .gx-ctl > .gx-step:first-child { padding-top: 20px; border-top: 1px solid var(--f-line); }
.gx-step__head { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.gx-step__head small { margin-left: auto; font-family: var(--f-font, Inter, system-ui, sans-serif); font-weight: 400; font-size: 13px; color: var(--f-ink-3); }
.gx-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--f-pink); color: var(--f-on); font: 800 12.5px/1 var(--f-display); }

/* template picker */
.gx-tpl-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gx-tpl { position: relative; display: grid; gap: 6px; cursor: pointer; }
.gx-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.gx-tpl__img { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--f-surface-2); border: 1.5px solid var(--f-line); transition: border-color .15s, transform .15s; }
.gx-tpl__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .3s; }
.gx-tpl:hover .gx-tpl__img img { transform: scale(1.05); }
.gx-tpl__name { font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--f-ink-2); text-align: center; }
.gx-tpl__badge { position: absolute; left: 50%; bottom: 5px; translate: -50% 0; padding: 1px 6px; border-radius: 999px; background: var(--f-mint); color: var(--f-bg); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.gx-tpl input:checked + .gx-tpl__img { border-color: var(--f-pink); box-shadow: 0 0 0 1px var(--f-pink), 0 8px 24px color-mix(in srgb, var(--f-pink) 25%, transparent); }
.gx-tpl input:checked ~ .gx-tpl__name { color: var(--f-ink); font-weight: 800; }
.gx-tpl input:focus-visible + .gx-tpl__img { outline: 2px solid var(--f-pink); outline-offset: 3px; }
.gx-tpl__ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--f-pink) 55%, var(--f-bg)), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--f-gold) 45%, var(--f-bg)), transparent 60%), var(--f-surface-2); color: var(--f-ink); }
.gx-tpl__ph .gx-i { width: 26px; height: 26px; }
.gx-tpl-desc { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; font-size: 14px; color: var(--f-ink-2); }
.gx-tpl-desc b { font-family: var(--f-display); font-weight: 800; color: var(--f-ink); }

/* photo slots */
.gx-slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gx-slots.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gx-slot { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 12px 14px; border: 1.5px dashed var(--f-line-2); border-radius: var(--f-r-card); background: var(--f-bg); color: var(--f-ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; width: 100%; }
.gx-slot:hover { border-color: var(--f-pink); background: var(--f-surface-2); }
.gx-slot__icon { display: grid; place-items: center; width: 52px; height: 64px; flex: none; border-radius: 12px; background: var(--f-surface-2); color: var(--f-ink); }
.gx-slot__icon .gx-i { width: 22px; height: 22px; }
.gx-slot__txt { display: grid; gap: 2px; min-width: 0; }
.gx-slot__txt b { font-size: 15px; }
.gx-slot__txt span { font-size: 13px; font-weight: 400; color: var(--f-ink-3); }
.gx-slot.is-set { border-style: solid; border-color: color-mix(in srgb, var(--f-mint) 55%, transparent); background: var(--f-bg); }
.gx-slot__thumb { position: relative; width: 52px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; }
.gx-slot__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gx-slot__ok { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--f-mint); color: var(--f-bg); }
.gx-slot__ok .gx-i { width: 11px; height: 11px; stroke-width: 3.4; }
.gx-slot.is-set .gx-slot__txt span { color: var(--f-mint); }
.gx-slot__partner { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, color-mix(in srgb, var(--f-gold) 40%, var(--f-bg)), color-mix(in srgb, var(--f-pink) 40%, var(--f-bg))); }
.gx-slot__partner .gx-i { width: 24px; height: 24px; }
.gx-photo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.gx-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 400; color: var(--f-ink-3); }
.gx-hint .gx-i { width: 16px; height: 16px; margin-top: 1px; color: var(--f-ink-3); }
.gx-qr-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--f-line-2); border-radius: 999px; background: none; font-size: 13.5px; font-weight: 600; color: var(--f-ink); cursor: pointer; white-space: nowrap; }
.gx-qr-btn:hover { background: var(--f-surface-2); }
.gx-qr-btn .gx-i { width: 16px; height: 16px; }

/* ratio chips */
.gx-ratios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gx-ratio { position: relative; cursor: pointer; }
.gx-ratio input { position: absolute; opacity: 0; pointer-events: none; }
.gx-ratio__in { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; column-gap: 10px; height: 100%; padding: 10px 12px; border-radius: var(--f-r-field); border: 1.5px solid var(--f-line); background: var(--f-bg); transition: border-color .15s, background .15s; }
.gx-ratio:hover .gx-ratio__in { border-color: var(--f-line-2); }
.gx-ratio__shape { grid-row: span 2; justify-self: center; width: var(--w); height: var(--h); border: 2px solid var(--f-ink-3); border-radius: 3px; }
.gx-ratio b { font-size: 14px; line-height: 1.2; white-space: nowrap; }
.gx-ratio small { font-size: 12px; font-weight: 400; line-height: 1.25; color: var(--f-ink-3); }
.gx-ratio input:checked + .gx-ratio__in { border-color: var(--f-pink); background: var(--f-surface-2); }
.gx-ratio input:checked + .gx-ratio__in .gx-ratio__shape { border-color: var(--f-pink); background: color-mix(in srgb, var(--f-pink) 22%, transparent); }
.gx-ratio input:focus-visible + .gx-ratio__in { outline: 2px solid var(--f-pink); outline-offset: 2px; }

/* text fields */
.gx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.gx-fields.is-one { grid-template-columns: minmax(0, 1fr); }
.gx-field { display: grid; gap: 6px; min-width: 0; }
.gx-field label { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--f-ink-2); }
.gx-field label small { font-weight: 400; color: var(--f-ink-3); font-variant-numeric: tabular-nums; }
.gx-field input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--f-r-field); border: 1.5px solid var(--f-line-2); background: var(--f-bg); color: var(--f-ink); font: 600 15.5px/1 var(--f-font, Inter, system-ui, sans-serif); }
.gx-field input:focus { outline: none; border-color: var(--f-pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--f-pink) 25%, transparent); }
.gx-field input::placeholder { color: var(--f-ink-3); font-weight: 400; }
.gx-ideas { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
.gx-idea { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--f-line-2); background: none; font-size: 13px; font-weight: 600; color: var(--f-ink-2); cursor: pointer; }
.gx-idea:hover { border-color: var(--f-pink); color: var(--f-ink); }

/* consent + errors */
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--f-ink-2); cursor: pointer; }
.f-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--f-pink); }
.gx-err { display: none; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--f-gold); }
.gx-err .gx-i { width: 15px; height: 15px; }
.is-invalid .gx-err { display: flex; }
.is-invalid .gx-slot, .is-invalid .f-check input { border-color: var(--f-gold); }
.is-invalid.gx-slot { border-color: var(--f-gold); }

/* action bar (sticky) */
.gx-act { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 12px; margin: 0 -22px; padding: 16px 22px 20px; border-top: 1px solid var(--f-line); border-radius: 0 0 var(--f-r-panel) var(--f-r-panel); background: color-mix(in srgb, var(--f-surface) 94%, transparent); backdrop-filter: blur(10px); }
.gx-cost { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.gx-cost__price { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--f-ink-3); }
.gx-cost__price b { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--f-ink); font-variant-numeric: tabular-nums; }
.gx-cost__price s { color: var(--f-ink-3); }
.gx-cost__free { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--f-mint); }
.gx-cost__free.is-warn { color: var(--f-gold); }
.gx-cost__free .gx-i { width: 16px; height: 16px; }
.gx-bar { height: 5px; border-radius: 999px; background: var(--f-line); overflow: hidden; }
.gx-bar i { display: block; height: 100%; border-radius: inherit; background: var(--f-mint); transition: width .4s; }
.gx-act .f-btn--lg { width: 100%; }
.gx-act__note { text-align: center; font-size: 12.5px; font-weight: 400; color: var(--f-ink-3); }
.gx-act__note a { color: var(--f-ink-2); }

/* stage */
.gx-stage { grid-area: stage; position: sticky; top: 80px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; height: min(calc(100vh - 104px), 760px); min-height: 520px; padding: 16px; border-radius: var(--f-r-panel); border: 1px solid var(--f-line); background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--f-pink) 9%, transparent), transparent 70%), var(--f-surface); }
.gx-stage__box { position: relative; display: grid; place-items: center; min-height: 0; }
.gx-frame { position: relative; overflow: hidden; border-radius: 16px; background: var(--f-bg); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--f-pink) 35%, transparent), 0 0 0 1px var(--f-line); transition: width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1); }
.gx-frame > img, .gx-frame > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); transition: opacity .35s, filter .6s; }
.gx-frame canvas { object-fit: contain; }
.gx-frame__label { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--f-ink); color: var(--f-bg); font: 800 11.5px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.gx-frame__label.is-yours { background: var(--f-pink); color: var(--f-on); }
.gx-frame__ratio { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 5px 9px; border-radius: 999px; background: var(--f-scrim); backdrop-filter: blur(6px); color: var(--f-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gx-frame.is-running > img, .gx-frame.is-running > canvas { filter: blur(18px) saturate(1.3) brightness(.55); }
.gx-couple { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(70% 50% at 30% 25%, color-mix(in srgb, var(--f-pink) 45%, transparent), transparent 70%), radial-gradient(60% 50% at 75% 80%, color-mix(in srgb, var(--f-gold) 35%, transparent), transparent 70%), linear-gradient(180deg, #1a0c18, #0b0710); }
.gx-couple__faces { display: flex; }
.gx-couple__faces span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--f-ink) 70%, transparent); background: color-mix(in srgb, var(--f-bg) 40%, transparent); }
.gx-couple__faces span + span { margin-left: -16px; }
.gx-couple__faces .gx-i { width: 32px; height: 32px; }
.gx-couple b { font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.gx-couple p { max-width: 26ch; font-size: 14px; color: var(--f-ink-2); }

/* run overlay */
.gx-run { position: absolute; inset: 0; z-index: 3; display: none; place-content: center; justify-items: center; gap: 16px; padding: 20px; text-align: center; }
.gx-frame.is-running .gx-run { display: grid; }
.gx-run b { font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.gx-run ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; text-align: left; }
.gx-run li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--f-ink-2); }
.gx-run li i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--f-line-2); font-style: normal; }
.gx-run li i .gx-i { width: 12px; height: 12px; stroke-width: 3.2; opacity: 0; }
.gx-run li.is-now { color: var(--f-ink); font-weight: 700; }
.gx-run li.is-now i { border-color: var(--f-pink); border-right-color: transparent; animation: gx-spin .8s linear infinite; }
.gx-run li.is-done { color: var(--f-mint); }
.gx-run li.is-done i { border-color: var(--f-mint); background: var(--f-mint); color: var(--f-bg); }
.gx-run li.is-done i .gx-i { opacity: 1; }
.gx-run .gx-bar { width: min(220px, 70%); height: 4px; }
.gx-run .gx-bar i { background: var(--f-pink); transition: width .25s linear; }
.gx-run p { max-width: 28ch; font-size: 12.5px; font-weight: 400; color: var(--f-ink-2); }
@keyframes gx-spin { to { transform: rotate(360deg); } }

.gx-stage__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; min-height: 52px; }
.gx-made { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; color: var(--f-ink-3); }
.gx-made img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--f-line-2); }
.gx-made b { display: block; color: var(--f-ink); font-size: 14px; }
.gx-made__arrow { color: var(--f-pink); }
.gx-result { display: none; gap: 10px; width: 100%; }
.gx-stage.is-done .gx-result { display: grid; }
.gx-stage.is-done .gx-made { display: none; }
.gx-result__row { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-result__row .f-btn { flex: 1 1 auto; }
.gx-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--f-mint); text-decoration: none; }
.gx-saved .gx-i { width: 15px; height: 15px; stroke-width: 2.6; }
.gx-saved:hover { text-decoration: underline; }
.gx-result__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--f-ink-3); }

/* ---------- mobile dock ---------- */
.gx-dock { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--f-surface-2) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--f-line-2); box-shadow: 0 20px 50px -10px #000; }
.gx-dock__txt { display: grid; min-width: 0; font-size: 12.5px; line-height: 1.25; color: var(--f-ink-3); }
.gx-dock__txt b { font-size: 14px; color: var(--f-ink); white-space: nowrap; }
.gx-dock .f-btn { margin-left: auto; height: 46px; }
@media (max-width: 1080px) {
  .gx { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: 24px; }
  .gx-tpl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gx-tpl__img { aspect-ratio: 16 / 11; }
}
@media (max-width: 900px) {
  .gx { grid-template-columns: minmax(0, 1fr); grid-template-areas: "picker" "stage" "ctl"; grid-template-rows: none; }
  .gx-picker { padding-bottom: 16px; }
  .gx-stage { position: relative; top: 0; height: auto; min-height: 0; grid-template-rows: auto auto; border-radius: 0; border-block: 0; padding: 4px 16px 14px; background: var(--f-surface); }
  .gx-stage__box { height: min(66vh, 470px); }
  .gx-ctl { padding-top: 0; }
  .gx-tpl-list { display: flex; overflow-x: auto; gap: 8px; margin: 0 -22px; padding: 2px 22px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gx-tpl-list::-webkit-scrollbar { display: none; }
  .gx-tpl { flex: 0 0 82px; scroll-snap-align: start; }
  .gx-tpl__img { aspect-ratio: 4 / 5; }
  .gx-dock.is-on { display: flex; }
  .gx-act { position: static; background: none; backdrop-filter: none; }
}
@media (max-width: 560px) {
  .gx-picker, .gx-stage { padding-left: 16px; padding-right: 16px; }
  .gx-ctl { padding-left: 16px; padding-right: 16px; }
  .gx-act { margin: 0 -16px; padding: 14px 16px 16px; }
  .gx-tpl-list { margin: 0 -16px; padding: 2px 16px 6px; }
  .gx-tpl { flex-basis: 76px; }
  .gx-slots.is-two { grid-template-columns: minmax(0, 1fr); }
  .gx-ratio__in { padding: 9px 10px; column-gap: 8px; }
  .gx-fields { grid-template-columns: minmax(0, 1fr); }
  .gx-stage__foot .gx-made { font-size: 12.5px; }
  .gx-result__row .f-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gx *, .gx *::before, .gx *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* 线上补充 */
:where(.gx) :where(h3, p) { margin: 0; }
.gx-picker legend.gx-step__head { float: left; }
.gx-picker legend.gx-step__head + * { clear: both; }
.gx-tpl__badge--new { background: var(--f-gold); }
.gx-tpl__img img.gx-contain { object-fit: contain; object-position: 50% 50%; background: repeating-conic-gradient(#1b1b1b 0 25%, #111 0 50%) 0 0 / 12px 12px; }
.gx-made__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--f-surface-2); color: var(--f-pink); flex: none; }
.gx-frame > img { object-position: var(--pos, 50% 30%); }
.gx-frame.is-logo { background: repeating-conic-gradient(#1b1b1b 0 25%, #111 0 50%) 0 0 / 22px 22px; }
.gx-frame.is-done > img { object-fit: contain; background: var(--f-bg); }
.gx-run a { color: var(--f-ink); }
.gx-why { min-height: 0; font-size: 14px; font-weight: 700; color: var(--f-gold); text-align: center; }
.gx-why:empty { display: none; }
.gx-why a, .gx-why button { color: var(--f-pink); font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.gx-note { text-align: center; font-size: 12.5px; font-weight: 400; color: var(--f-ink-3); }
.gx-go { width: 100%; }
.gx-go.is-busy { pointer-events: none; opacity: .75; }
.gx-slot { font: inherit; }
.gx-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gx-slot:focus-within { outline: 2px solid var(--f-pink); outline-offset: 2px; }
.gx-slot.is-drag { border-color: var(--f-pink); background: var(--f-surface-2); }
.gx-slot__rm { margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--f-line-2); background: none; color: var(--f-ink-2); cursor: pointer; }
.gx-slot__rm:hover { color: var(--f-ink); border-color: var(--f-ink-3); }
.gx-slot__rm .gx-i { width: 15px; height: 15px; }
.gx-ideas { margin-top: 2px; }
.gx-dlg { width: min(460px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 22px; border: 1px solid var(--f-line-2); border-radius: var(--f-r-panel); background: var(--f-surface); color: var(--f-ink); }
.gx-dlg::backdrop { background: color-mix(in srgb, var(--f-bg) 72%, transparent); backdrop-filter: blur(4px); }
.gx-dlg[open] { display: grid; gap: 16px; }
.gx-dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gx-dlg__head b { font: 800 21px/1.2 var(--f-display); }
.gx-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--f-line-2); background: none; color: var(--f-ink); cursor: pointer; }
@media (max-width: 900px) { .gx-dock { bottom: max(12px, env(safe-area-inset-bottom)); } }
.gx-slot { position: relative; }
.gx-picker .gx-tpl-desc { margin-top: 12px; }

/* 情侣模板：第二位选谁（自己的伴侣 / Lucia / Jason） */
.gx-with { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.gx-with__opt { position: relative; cursor: pointer; }
.gx-with__opt input { position: absolute; opacity: 0; pointer-events: none; }
.gx-with__opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--f-line); background: var(--f-bg); color: var(--f-ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .15s, background .15s; }
.gx-with__opt:hover span { border-color: var(--f-line-2); }
.gx-with__opt input:checked + span { border-color: var(--f-pink); background: var(--f-surface-2); color: var(--f-ink); }
.gx-with__opt input:focus-visible + span { outline: 2px solid var(--f-pink); outline-offset: 2px; }
.gx-slot.is-star { cursor: default; }
.gx-slot.is-star:hover { border-color: color-mix(in srgb, var(--f-mint) 55%, transparent); background: var(--f-bg); }
.gx-slot.is-star .gx-slot__thumb img { object-position: 50% 20%; }
.gx .gx-star-note { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.45; color: var(--f-ink-3); }
@media (max-width: 560px) { .gx-with__opt span { padding: 8px 12px; font-size: 13px; } }
.gx-made__faces { display: flex; flex: none; }
.gx-made__faces img + img { margin-left: -12px; }
.gx-made__faces img[hidden] { display: none; }

/* 免费出图后的轻量付费引导实验（仅 data-upsell="pack" 挑战组显示） */
.gx-upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border-radius: var(--f-r-card, 18px); border: 1px solid color-mix(in srgb, var(--f-pink) 42%, var(--f-line)); background: color-mix(in srgb, var(--f-pink) 9%, var(--f-bg)); }
.gx-upsell[hidden] { display: none !important; }
.gx-upsell__txt { display: grid; gap: 3px; flex: 1 1 220px; min-width: 0; }
.gx-upsell__txt b { font-family: var(--f-display); font-size: 14.5px; color: var(--f-ink); }
.gx-upsell__txt span { font-size: 13px; line-height: 1.4; color: var(--f-ink-2); }
.gx-free-cta { margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--f-pink) 55%, transparent); background: color-mix(in srgb, var(--f-pink) 16%, transparent); color: var(--f-ink); font: 700 12.5px/1.3 var(--f-font, Inter, system-ui, sans-serif); cursor: pointer; white-space: nowrap; }
.gx-free-cta:hover { border-color: var(--f-pink); background: color-mix(in srgb, var(--f-pink) 26%, transparent); }
@media (max-width: 560px) { .gx-upsell .f-btn { width: 100%; } }
