/* 「Um dia na caixa」葡语收银游戏（2D）。颜色沿用 app.css 里的变量。 */
.cx { position: fixed; inset: 0; background: #f3ecdf; color: var(--ink); overflow: auto; z-index: 5;
  --wood: #e3a868; --teal: #168a9c; --teal-dark: #0d6473; --screen: #f4f7ff; --key: 0 3px 0 #c3cbe6; }
.cx i { font-style: normal; }
.cx ul, .cx dl, .cx dd { margin: 0; padding: 0; } .cx h3 { margin: 0; }
.cx .zh { display: none; font-size: .78em; font-weight: 600; color: var(--ink-soft); }
.cx.zh-on .zh { display: inline; }
.cx.zh-on .cx-opt .zh, .cx.zh-on .cx-item .zh, .cx.zh-on .cx-tabs .zh, .cx.zh-on .cx-method .zh, .cx.zh-on p.zh, .cx.zh-on .cx-ask .zh, .cx.zh-on .cx-receipt li .zh { display: block; }
.cx-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-weight: 900; font-size: 1.05rem; box-shadow: var(--shadow); flex: none; }
.cx-chip { border: 0; border-radius: 14px; background: #fff; padding: .45em .8em; font-weight: 800; box-shadow: var(--key); flex: none; }
.cx-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #0f1738; }

/* ---------- 开始 / 结算画面 */
.cx-home { display: grid; padding: 16px; background: var(--teal-dark); }
.cx-home > .cx-card { margin: auto; }   /* 内容比屏幕高时从顶部开始、可以滚动，不会被裁掉 */
.cx-home > .cx-x { position: absolute; top: calc(12px + var(--safe-top)); left: 12px; z-index: 2; }
.cx-card { width: min(980px, 100%); background: var(--paper); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); box-shadow: 0 10px 0 rgba(0, 0, 0, .22); }
.cx-hero { position: relative; min-height: 300px; background: var(--teal); }
.cx-hero .cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx-intro { padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.1rem, 3vw, 2rem); display: grid; gap: .6rem; align-content: center; }
.cx-intro h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.cx-intro h3 { font-size: 1rem; margin-top: .3rem; }
.cx-intro h3 small { color: var(--ink-soft); font-weight: 600; }
.cx-sub { color: var(--ink-soft); font-size: .98rem; }
.cx-shops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.cx-shopbtn { border: 3px solid var(--line); background: #fff; border-radius: 16px; padding: .35rem .2rem .4rem; display: grid; justify-items: center; line-height: 1.2; }
.cx-shopbtn span { font-size: 1.6rem; line-height: 1.25; } .cx-shopbtn b { font-size: .86rem; } .cx-shopbtn small { font-size: .72rem; color: var(--ink-soft); font-weight: 700; }
.cx-shopbtn.on { border-color: var(--ink); background: #eef2ff; }
.cx-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.cx-level { border: 3px solid var(--line); background: #fff; border-radius: 16px; padding: .4rem .3rem; display: grid; justify-items: center; line-height: 1.25; }
.cx-level b { font-size: 1.02rem; } .cx-level b span { font-size: .78rem; color: var(--ink-soft); font-weight: 700; margin-left: .2em; }
.cx-level em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.cx-level.on { border-color: var(--ink); background: #eef2ff; }
.cx-lvnote { margin-top: -.3rem; }
.cx .cx-emo { display: inline-grid; color: initial; place-items: center; font-size: 30px; line-height: 1; width: 34px; height: 34px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.cx .tr-vis .cx-emo, .cx .tr-opt.vis .cx-emo { font-size: 34px; width: 40px; height: 40px; }
.cx .tr-q.vis .cx-emo { font-size: 56px; width: 84px; height: 84px; background: #fff; border-radius: 16px; }
.cx .cx-words .cx-emo { font-size: 24px; width: 30px; height: 30px; grid-row: span 2; }
.cx-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cx-lbl { font-weight: 800; font-size: .9rem; }
.cx-seg { flex: 1; min-width: 240px; background: #e9edf8; border-radius: 12px; padding: 3px; display: flex; }
.cx-seg small { font-weight: 600; font-size: .72rem; }
.cx-home .btn.big { font-size: 1.2rem; padding: .7em 1em; }
.cx-home .btn:disabled { opacity: .5; }

.cx-end { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.cx-slip { background: #fff; margin: 22px 0 22px 22px; padding: 1.2rem 1.1rem 1.6rem; font-variant-numeric: tabular-nums; align-self: start;
  box-shadow: 0 4px 0 rgba(31, 42, 92, .12); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 95% 100%, 90% calc(100% - 9px), 85% 100%, 80% calc(100% - 9px), 75% 100%, 70% calc(100% - 9px), 65% 100%, 60% calc(100% - 9px), 55% 100%, 50% calc(100% - 9px), 45% 100%, 40% calc(100% - 9px), 35% 100%, 30% calc(100% - 9px), 25% 100%, 20% calc(100% - 9px), 15% 100%, 10% calc(100% - 9px), 5% 100%, 0 calc(100% - 9px)); }
.cx-slip h2 { text-align: center; font-size: 1.25rem; }
.cx-slipsub { text-align: center; font-size: .8rem; color: var(--ink-soft); border-bottom: 2px dashed var(--line); padding-bottom: .6rem; margin-bottom: .6rem; }
.cx-slip dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; font-size: .92rem; }
.cx-slip dl.pts { border-top: 2px dashed var(--line); margin-top: .7rem; padding-top: .7rem; }
.cx-slip dt i { color: var(--ink-soft); font-size: .78rem; margin-left: .3em; }
.cx-slip dd { font-weight: 800; text-align: right; }
.cx-score { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--ink); margin-top: .7rem; padding-top: .5rem; font-weight: 800; }
.cx-score b { font-size: 2rem; } .cx-score i { color: var(--ink-soft); font-size: .78rem; }
.cx-stars { font-size: 2.4rem; line-height: 1; letter-spacing: .1em; color: #d9deee; } .cx-stars .on { color: var(--sun); }
.cx-reward { font-weight: 800; }
.cx-words { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .35rem .8rem; max-height: 170px; overflow: auto; }
.cx-words li { display: grid; grid-template-columns: 30px 1fr; gap: 0 .5rem; align-items: center; cursor: pointer; font-size: .88rem; line-height: 1.25; }
.cx-words svg { width: 30px; height: 30px; grid-row: span 2; } .cx-words i { color: var(--ink-soft); font-size: .78rem; }

/* ---------- 营业中 */
.cx-play { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; overflow: hidden; }
.cx-top { display: flex; align-items: center; gap: .6rem; padding: calc(8px + var(--safe-top)) 10px 8px; }
.cx-clock { background: var(--ink); color: #fff; border-radius: 14px; padding: .25rem .8rem; display: grid; justify-items: center; line-height: 1.15; font-variant-numeric: tabular-nums; flex: none; }
.cx-clock b { font-size: 1.25rem; } .cx-clock small { font-size: .7rem; opacity: .85; font-weight: 700; }
.cx-goal { flex: 1; min-width: 0; background: #fff; border-radius: 14px; padding: .3rem .8rem .4rem; box-shadow: var(--key); display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; align-items: center; font-variant-numeric: tabular-nums; }
.cx-goal > div { display: flex; gap: .6rem; align-items: baseline; min-width: 0; } .cx-goal span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.cx-goal > div b { font-size: 1.2rem; white-space: nowrap; } .cx-goal small { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.cx-bar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: #e4e9f7; overflow: hidden; display: block; }
.cx-bar b { display: block; height: 100%; width: 0; background: var(--sun); border-radius: 5px; transition: width .6s; } .cx-bar b.done { background: var(--grass); }
.cx-echo { display: none; }
.cx-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 10px; padding: 0 10px calc(10px + var(--safe-bottom)); min-height: 0; }

.cx-shop { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.cx-scene { position: relative; border-radius: 22px; overflow: hidden; background: var(--teal); aspect-ratio: 600 / 380; max-height: 56vh; width: 100%; border: 3px solid var(--ink); container-type: inline-size; }
.cx-scene .cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx-person { transition: transform .8s cubic-bezier(.3, .9, .4, 1), opacity .3s; }
.cx-person.out { transform: translateX(-330px); opacity: 0; transition: none; }
.cx-person.gone { transform: translateX(-330px); transition: transform .7s ease-in; }
.cx-body { animation: cx-breathe 3.2s ease-in-out infinite; transform-origin: 100px 300px; }
@keyframes cx-breathe { 50% { transform: scaleY(1.012); } }
.cx-bubble { position: absolute; top: 10px; left: 57%; right: 10px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: .5rem .75rem .6rem; box-shadow: 0 4px 0 rgba(31, 42, 92, .25); }
.cx-bubble::before { content: ""; position: absolute; left: -13px; top: 46px; width: 20px; height: 20px; background: #fff; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.cx-bubble.pop { animation: pop .2s ease-out; }
.cx-bubble b { font-size: .74rem; color: var(--ink-soft); display: block; }
.cx-bubble p { font-weight: 800; font-size: 1.02rem; line-height: 1.3; padding-right: 2rem; }
.cx-bubble p.zh { font-weight: 600; margin-top: .2rem; }
.cx-bubble button { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2ff; }
.cx-me { position: absolute; left: 10px; bottom: 30%; max-width: 46%; background: var(--ink); color: #fff; font-weight: 800; border-radius: 16px 16px 16px 4px; padding: .45rem .75rem; font-size: .95rem; line-height: 1.3; animation: pop .2s ease-out; }
.cx-hearts { position: absolute; left: 10px; top: 8px; font-size: 1.25rem; color: var(--beret); letter-spacing: .08em; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.cx-hearts .off { color: rgba(255, 255, 255, .35); text-shadow: none; }
.cx-cash { position: absolute; left: 12%; right: 30%; bottom: 3%; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; }
@container (max-width: 430px) {
  .cx-bubble { left: 10px; top: 34px; } .cx-bubble::before { display: none; }
}

.cx-talk { background: var(--paper); border-radius: 22px; padding: .7rem .8rem .8rem; min-height: 0; overflow: auto; box-shadow: var(--key); display: grid; gap: .5rem; align-content: start; }
.cx-ask { font-weight: 800; line-height: 1.3; }
.cx-opts { display: grid; gap: .4rem; } .cx-opts.row { grid-template-columns: 1fr 1fr; }
.cx-opt { text-align: left; border: 0; background: #fff; border-radius: 14px; padding: .5rem .8rem; box-shadow: 0 3px 0 #c3cbe6, inset 0 0 0 2px var(--line); font-size: 1rem; line-height: 1.3; }
.cx-opt b { font-weight: 800; } .cx-opt.sm { font-weight: 800; font-size: .9rem; }
.cx-opt.good { background: #dff5e3; box-shadow: 0 3px 0 #9bd3a6, inset 0 0 0 2px var(--grass); }
.cx-opt.bad { background: #fde7ea; box-shadow: inset 0 0 0 2px var(--margin); opacity: .7; }
.cx-opt:disabled { cursor: default; }
.cx-why { background: #fff4d6; border-radius: 12px; padding: .4rem .7rem; font-size: .88rem; font-weight: 700; }
.cx-hintlist { list-style: none; background: #fff4d6; border-radius: 12px; padding: .45rem .7rem; font-size: .92rem; display: grid; gap: .15rem; }
.cx-hintlist b { font-size: 1.05rem; } .cx-hintlist i, .cx-hintlist small { color: var(--ink-soft); font-size: .8rem; }

/* 收银机 */
.cx-pos { background: var(--ink); border-radius: 24px; padding: 8px; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; box-shadow: 0 6px 0 #0f1738; }
.cx-pos-head { color: #fff; display: flex; justify-content: space-between; gap: 1rem; padding: .1rem .7rem .4rem; font-size: .8rem; font-weight: 700; }
.cx-pos-head b { letter-spacing: .08em; } .cx-pos-head span { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-pos-body { background: var(--screen); border-radius: 18px; padding: 8px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 8px; min-height: 0; }
.cx-left { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; min-height: 0; }
.cx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cx-tabs button { border: 0; border-radius: 10px; background: #e1e7f8; font-weight: 800; font-size: .74rem; padding: .4rem .05rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.cx-tabs button.on { background: var(--ink); color: #fff; } .cx-tabs button.on .zh { color: #c9d2f5; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; overflow: auto; align-content: start; padding-bottom: 4px; }
.cx-item { border: 0; background: #fff; border-radius: 14px; padding: .35rem .3rem .4rem; display: grid; justify-items: center; gap: .05rem; box-shadow: var(--key); line-height: 1.2; }
.cx-item svg { width: 34px; height: 34px; }
.cx-item b { font-size: .74rem; font-weight: 800; text-align: center; }
.cx-item span { font-size: .82rem; font-weight: 800; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.cx-item:active, .cx-keys button:active, .cx-method:active { transform: translateY(3px); box-shadow: none; }
.cx-pos:not([data-phase="ring"]) .cx-item { opacity: .55; }

.cx-side { display: grid; grid-template-rows: minmax(84px, 1fr) auto auto; gap: 6px; min-height: 0; }
.cx-receipt { background: #fff; border-radius: 12px; padding: .4rem .55rem; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; font-variant-numeric: tabular-nums; }
.cx-receipt h3 { font-size: .8rem; color: var(--ink-soft); border-bottom: 2px dashed var(--line); padding-bottom: .2rem; }
.cx-receipt ul { list-style: none; overflow: auto; font-size: .82rem; }
.cx-receipt li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .35rem; align-items: start; padding: .22rem 0; border-bottom: 1px solid #eef1fa; line-height: 1.25; }
.cx-receipt li.empty { display: block; color: var(--ink-soft); border: 0; padding: .6rem 0; }
.cx-receipt .q, .cx-receipt .p { font-weight: 800; white-space: nowrap; }
.cx-receipt li button { border: 0; background: #fde7ea; color: var(--beret-dark); width: 26px; height: 26px; border-radius: 8px; font-weight: 900; }
.cx-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--ink); padding-top: .25rem; font-weight: 800; }
.cx-total b { font-size: 1.35rem; }
.cx-padbox { display: grid; gap: 5px; }
.cx-qty { background: #1f2a5c; color: #bff3d0; border-radius: 10px; padding: .2rem .6rem; display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.cx-qty span { font-size: .74rem; font-weight: 700; } .cx-qty .zh { color: #9fb0e8; } .cx-qty b { font-size: 1.3rem; }
.cx-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cx-keys button { border: 0; background: #fff; border-radius: 10px; height: 38px; font-weight: 800; font-size: 1.05rem; box-shadow: var(--key); }
.cx-keys .ok { background: var(--grass); color: #fff; box-shadow: 0 3px 0 #3d9a4c; } .cx-keys .ok:disabled { background: #e1e7f8; color: #9aa5c9; box-shadow: none; }
.cx-go { border: 0; border-radius: 14px; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 1.15rem; padding: .55rem; box-shadow: 0 4px 0 #d9a51c; width: 100%; }
.cx-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9a51c; }
.cx-go:disabled { background: #e1e7f8; color: #9aa5c9; box-shadow: none; }
.cx-go.small { font-size: 1rem; margin-top: .4rem; } .cx-go .zh { color: inherit; opacity: .75; }

.cx-paybox { grid-row: 1 / -1; background: #fff; border-radius: 14px; padding: .7rem; display: grid; gap: .5rem; align-content: start; overflow: auto; font-variant-numeric: tabular-nums; }
.cx-paybox h3 { font-size: 1rem; }
.cx-due { font-size: 1.9rem; font-weight: 900; text-align: center; }
.cx-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cx-method { border: 0; background: var(--screen); border-radius: 16px; padding: .8rem .3rem; display: grid; justify-items: center; font-weight: 900; font-size: 1.05rem; box-shadow: var(--key); }
.cx-method span { font-size: 2rem; line-height: 1.2; } .cx-method:disabled { opacity: .4; }
.cx-wait { text-align: center; font-weight: 800; padding: 1rem; background: var(--screen); border-radius: 12px; } .cx-wait.ok { background: #dff5e3; color: #1f7a35; }
.cx-sum { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; font-weight: 700; font-size: .92rem; }
.cx-sum dd { font-weight: 900; text-align: right; font-size: 1.05rem; }
.cx-money { display: flex; flex-wrap: wrap; gap: 5px; padding: .5rem; background: #3a4266; border-radius: 12px; justify-content: center; }
.cx-given { background: var(--screen); border-radius: 12px; padding: .4rem .5rem; margin-top: .4rem; font-size: .88rem; font-weight: 700; display: grid; gap: .3rem; }
.cx-given div { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; }
.cx-note, .cx-coin { display: inline-grid; place-items: center; font-weight: 900; font-size: .82rem; color: var(--ink); border: 2px solid var(--ink); font-family: inherit; font-variant-numeric: tabular-nums; padding: 0; }
.cx-note { width: 60px; height: 30px; border-radius: 5px; background: #bfe6c6; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); }
.cx-coin { width: 34px; height: 34px; border-radius: 50%; background: #f1c95b; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45); font-size: .74rem; }
.cx-note.v5000 { background: #d9c2f0; } .cx-note.v2000 { background: #f6c7a8; } .cx-note.v1000 { background: #a9d8f2; } .cx-note.v500 { background: #f2b3bd; } .cx-note.v200 { background: #bfe6c6; }
.cx-coin.v5, .cx-coin.v10, .cx-coin.v20 { background: #d9a066; } .cx-coin.v100, .cx-coin.v200 { background: #dfe3ea; }
button.cx-note, button.cx-coin { cursor: pointer; }

@media (max-width: 860px) {
  .cx-card, .cx-end { grid-template-columns: 1fr; } .cx-hero { min-height: 170px; } .cx-slip { margin: 16px 16px 0; }
  .cx-play { display: block; overflow: auto; }
  .cx-top { position: sticky; top: 0; z-index: 3; background: #f3ecdf; }
  .cx-shop { margin-bottom: 10px; }
  .cx-top { flex-wrap: wrap; } .cx-goal { grid-template-columns: 1fr; padding: .25rem .6rem .35rem; } .cx-goal > div span { display: none; }
  .cx-echo { display: block; flex-basis: 100%; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: .3rem .6rem; font-weight: 800; font-size: .9rem; line-height: 1.3; } .cx-echo:empty { display: none; }
  .cx-main { grid-template-columns: 1fr; }
  .cx-talk { min-height: 120px; }
  .cx-pos-body { grid-template-columns: 1fr; } .cx-grid { max-height: 300px; } .cx-receipt ul { max-height: 150px; }
  .cx-goal span, .cx-clock small { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .cx-body { animation: none; } .cx-person { transition: none; } }

/* ---------- 单词练习 */
.cx-step { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.cx-step b { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.cx-step small { color: var(--ink-soft); font-weight: 600; font-size: .8rem; }
.cx-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.cx-pack { border: 0; background: #fff4d6; border-radius: 14px; padding: .45rem .3rem .35rem; display: grid; justify-items: center; line-height: 1.25; box-shadow: 0 3px 0 #e6cf8f; }
.cx-pack b { font-size: .95rem; } .cx-pack small { font-size: .72rem; color: var(--ink-soft); font-weight: 700; }
.cx-pack s { text-decoration: none; color: #e3d4a8; font-size: .95rem; } .cx-pack s.on { color: #e09a00; }
.cx-card.tr { display: grid; grid-template-columns: 1fr; gap: .8rem; padding: clamp(1.1rem, 3vw, 2rem); width: min(860px, 100%); overflow: visible; }
.tr h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; } .tr h1 small { font-size: .5em; color: var(--ink-soft); font-weight: 700; margin-left: .4em; }
.tr h3 small { color: var(--ink-soft); font-weight: 600; }
.tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; max-height: 52vh; overflow: auto; padding: 2px 2px 6px; }
.tr-card { border: 0; background: #fff; border-radius: 16px; padding: .55rem .5rem .6rem; display: grid; justify-items: center; align-content: start; gap: .25rem; box-shadow: var(--key), inset 0 0 0 2px var(--line); line-height: 1.25; }
.tr-card.seen { box-shadow: var(--key), inset 0 0 0 2px var(--grass); }
.tr-card b { font-size: .98rem; text-align: center; }
.tr-vis { display: grid; justify-items: center; gap: .1rem; font-size: .82rem; color: var(--ink-soft); font-weight: 700; text-align: center; }
.tr-vis svg { width: 40px; height: 40px; }
.tr-num { font-size: 1.9rem; color: var(--teal-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tr-pips { display: flex; gap: 6px; justify-content: center; }
.tr-pips i { width: 26px; height: 8px; border-radius: 4px; background: #e1e7f8; } .tr-pips .ok { background: var(--grass); } .tr-pips .now { background: var(--ink); }
.tr-q { background: var(--teal); color: #fff; border-radius: 20px; min-height: 120px; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 1rem; text-align: center; }
.tr-q > b { font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.2; }
.tr-q.vis { font-size: 1.5rem; font-weight: 800; flex-direction: column; gap: .2rem; } .tr-q.vis svg { width: 72px; height: 72px; background: #fff; border-radius: 16px; padding: 6px; } .tr-q .tr-num { color: #fff; font-size: 3.4rem; }
.tr-q button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; flex: none; }
.tr-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tr-opt { border: 0; background: #fff; border-radius: 16px; min-height: 64px; padding: .5rem .6rem; box-shadow: var(--key), inset 0 0 0 2px var(--line); font-size: 1.08rem; line-height: 1.25; display: grid; justify-items: center; align-content: center; gap: .1rem; }
.tr-opt.vis { font-weight: 800; } .tr-opt.vis svg { width: 38px; height: 38px; } .tr-opt.vis span { font-size: .95rem; }
.tr-opt.good { background: #dff5e3; box-shadow: inset 0 0 0 3px var(--grass); } .tr-opt.bad { background: #fde7ea; box-shadow: inset 0 0 0 3px var(--margin); }
.tr .cx-why { text-align: center; font-size: 1rem; } .tr .cx-why.good { background: #dff5e3; }
.tr-end { justify-items: center; text-align: center; } .tr-end .tr-cards { width: 100%; max-height: 30vh; } .tr-end .cx-row { justify-content: center; }
@media (max-width: 860px) { .cx-packs, .cx-shops { grid-template-columns: 1fr 1fr; } .tr-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; } }
