/* =========================================================================
 * Màn chào người mới (#/welcome): toàn màn hình (ẩn menu), thanh tiến độ ở trên, nút Tiếp tục ở dưới.
 * Tiểu Cường: màn hỏi thì nhỏ bên trái + bong bóng bên phải; màn nói thì lớn ở giữa, bong bóng ở trên.
 * ========================================================================= */
.ob { --w: 560px; min-height: calc(100dvh - 48px); display: flex; flex-direction: column; max-width: var(--w); margin: 0 auto; }
.ob-top { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 4px 0 18px; }
.ob-top .progress { margin: 0; height: 14px; }
.ob-back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ob-back:hover { background: var(--surface-2); }
.ob-skip { border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; padding: 6px 4px; }
.ob-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ob-foot { position: sticky; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 max(14px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--bg) 30%); }
.ob-foot .ob-next { max-width: var(--w); }
.ob-link { border: 0; background: none; color: var(--accent-2); font-weight: 700; cursor: pointer; padding: 4px; }

/* bong bóng chữ Việt (không có Jyutping) */
.ob-say { font-size: 1.12rem; font-weight: 600; line-height: 1.45; padding: 12px 16px; max-width: 420px; text-align: left; align-items: flex-start; cursor: default; }
.ob-say .zh { font-family: var(--font-zh); }
/* màn hỏi */
.ob-ask { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ob-ask .tc { width: 84px; }
.ob-ask .ob-say::after { left: -7px; bottom: auto; top: 50%; margin-top: -7px; transform: rotate(135deg); }
:root:not([data-fx="less"]) .ob-ask .tc-img { animation: tc-jump .6s cubic-bezier(.3, 1.5, .5, 1) both; }
/* màn nói */
.ob-big { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px 0; }
.ob-big .ob-say { text-align: center; align-items: center; font-size: 1.2rem; }
.ob-big .tc-lg { width: min(230px, 58vw); }
:root:not([data-fx="less"]) .ob-big .tc-img { animation: tc-bob 2.6s ease-in-out infinite; }
.ob-ic { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 24px; background: var(--surface-2); color: var(--accent); }
.ob-ic svg { width: 48px; height: 48px; }

/* lựa chọn: nút to, viền dày phía dưới như phím */
.ob-opts { display: flex; flex-direction: column; gap: 10px; }
.ob-opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 16px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--text); background: var(--surface);
  border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 14px; transition: transform .08s;
}
.ob-opt:hover { background: var(--surface-2); }
.ob-opt:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.ob-opt > svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.ob-opt > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-opt small { font-weight: 600; font-size: .82rem; color: var(--muted); }
.ob-goal .ob-opt { justify-content: space-between; }
.ob-goal .ob-opt > span { flex: 0 1 auto; }
.ob-opt.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, var(--surface)); color: var(--accent); }
.ob-opt.on small { color: color-mix(in oklab, var(--accent) 70%, var(--muted)); }
.ob-opt em { position: absolute; top: -10px; right: 12px; font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; background: var(--accent-2); color: var(--hk-cream, #fff); }
.ob-opt > .ob-bars { display: inline-flex; flex-direction: row; align-items: flex-end; gap: 3px; height: 22px; flex: 0 0 auto; }
.ob-bars i { display: block; width: 5px; border-radius: 2px; background: var(--surface-3); }
.ob-bars i.on { background: var(--accent-2); }

/* bạn sẽ làm được gì */
.ob-gets { display: grid; gap: 10px; }
.ob-gets > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.ob-gets svg { width: 28px; height: 28px; color: var(--accent-2); flex: 0 0 auto; }
.ob-note { text-align: center; color: var(--muted); font-weight: 600; margin: 4px 0 0; }

/* ô tên */
.ob-input { width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); }
.ob-input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 560px) {
  .ob { min-height: calc(100dvh - 28px); }
  .ob-ask .tc { width: 70px; }
  .ob-say { font-size: 1.05rem; }
}
.ob-say .zh { white-space: nowrap; }
