:root {
  --paper: #F5EDE0;
  --paper-2: #EDE2D0;
  --card: #FFFBF4;
  --ink: #2A1F17;
  --ink-2: #6B5A4B;
  --line: #DCCDB6;
  --accent: #B5452B;
  --olive: #5E6B34;
  --gold: #B88A2E;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: calc(var(--safe-top) + 12px) 18px calc(var(--safe-bottom) + 32px); }

/* ---------- Home ---------- */
.masthead { text-align: center; padding: 28px 0 18px; border-bottom: 1.5px solid var(--ink); position: relative; }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; border-bottom: 1px solid var(--ink); }
.kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.masthead h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.05; margin: 10px 0 6px; letter-spacing: -.01em; }
.masthead h1 em { font-style: italic; color: var(--accent); }
.masthead p { margin: 0; color: var(--ink-2); font-size: 14px; }

.progress-strip { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; font-size: 13px; color: var(--ink-2); }
.bar { flex: 1; height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
.section-title h2 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 600; }
.section-title span { font-size: 13px; color: var(--ink-2); }
.section-title::after { content: ""; flex: 1; border-bottom: 1px dotted var(--ink-2); transform: translateY(-4px); }

.cuisine-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cuisine { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 14px; text-align: left; position: relative; overflow: hidden; transition: transform .15s; }
.cuisine:active { transform: scale(.97); }
.cuisine .flag { font-size: 30px; line-height: 1; }
.cuisine .en { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 12px; }
.cuisine .zh { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.cuisine .mini { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); }
.cuisine .mini .bar { height: 4px; }
.cuisine::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c, var(--accent)); }

.vocab-list { display: grid; gap: 10px; }
.vocab-entry { display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 16px; text-align: left; }
.vocab-entry:active { transform: scale(.98); }
.vocab-entry .ic { font-size: 26px; }
.vocab-entry .en { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.vocab-entry .zh { font-size: 13px; opacity: .7; margin-top: 2px; }
.vocab-entry .arrow { margin-left: auto; opacity: .6; font-size: 20px; }

.footer { text-align: center; font-size: 12px; color: var(--ink-2); margin-top: 36px; line-height: 1.7; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: calc(-12px - var(--safe-top)) -18px 0; padding: calc(var(--safe-top) + 10px) 14px 10px; background: rgba(245, 237, 224, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.back { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; }
.back:active { background: var(--paper-2); }
.topbar .t { font-weight: 600; font-size: 16px; }

.hero { padding: 22px 0 8px; }
.hero .flag { font-size: 40px; }
.hero h1 { font-family: var(--serif); font-size: 34px; margin: 8px 0 2px; font-weight: 600; }
.hero p { margin: 0; color: var(--ink-2); font-size: 14px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.mode { border-radius: 14px; padding: 14px; text-align: left; background: var(--card); border: 1px solid var(--line); }
.mode:active { transform: scale(.97); }
.mode b { display: block; font-size: 15px; }
.mode small { color: var(--ink-2); font-size: 12px; }
.mode.primary { background: var(--c, var(--accent)); color: #fff; border-color: transparent; }
.mode.primary small { color: rgba(255,255,255,.8); }

/* Dish menu list */
.menu-list { margin-top: 18px; }
.dish { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.dish:active { opacity: .6; }
.thumb { width: 74px; height: 74px; border-radius: 14px; flex: none; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--paper-2), #E4D3B8); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .emo { font-size: 36px; }
.dish .info { flex: 1; min-width: 0; }
.dish .en { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.dish .zh { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.dish .ipa { font-size: 12px; color: var(--ink-2); opacity: .8; margin-top: 3px; font-family: "Charis SIL", "Lucida Grande", var(--sans); }
.check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; font-size: 13px; color: #fff; }
.check.on { background: var(--olive); border-color: var(--olive); }

/* Vocab list */
.term { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 12px; }
.term-head { display: flex; align-items: center; gap: 10px; }
.term-head .emo { font-size: 24px; }
.term-head .en { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.term-head .zh { font-size: 13px; color: var(--accent); font-weight: 600; }
.term .ipa { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.term .desc { font-size: 14px; line-height: 1.6; margin-top: 8px; }
.term .ex { margin-top: 10px; padding: 8px 12px; background: var(--paper); border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.term .ex i { font-style: italic; font-family: var(--serif); flex: 1; }

.speak { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-size: 15px; flex: none; margin-left: auto; }
.speak.sm { width: 28px; height: 28px; font-size: 12px; }
.speak:active { transform: scale(.9); }
.speak.playing { background: var(--accent); }

/* ---------- Sheet (dish detail) ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(30, 20, 12, .45); opacity: 0; transition: opacity .25s; }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--card); border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(var(--safe-bottom) + 20px); -webkit-overflow-scrolling: touch; }
.sheet.open { pointer-events: auto; }
.sheet.open .scrim { opacity: 1; }
.sheet.open .panel { transform: none; }
.panel .img { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--paper-2), #E4D3B8); display: grid; place-items: center; position: relative; }
.panel .img img { width: 100%; height: 100%; object-fit: cover; }
.panel .img .emo { font-size: 96px; }
.panel .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 16px; display: grid; place-items: center; }
.panel .grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 9px; background: rgba(255,255,255,.7); }
.panel .body { padding: 20px 20px 0; }
.panel .row { display: flex; align-items: center; gap: 12px; }
.panel h2 { font-family: var(--serif); font-size: 28px; margin: 0; line-height: 1.15; font-weight: 600; }
.panel .ipa { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.panel .zh { font-size: 20px; font-weight: 600; color: var(--accent); margin-top: 12px; }
.panel .desc { font-size: 15px; line-height: 1.7; margin-top: 12px; }
.panel .note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.6; }
.panel .note b { color: var(--gold); display: block; font-size: 12px; letter-spacing: .1em; margin-bottom: 2px; }
.btn { display: block; width: 100%; text-align: center; padding: 15px; border-radius: 14px; font-weight: 600; font-size: 16px; margin-top: 18px; background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn.done { background: var(--olive); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- Flashcards ---------- */
.fc-wrap { margin-top: 24px; perspective: 1200px; }
.fc-count { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 18px; }
.fc { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 62vh; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fc.flipped { transform: rotateY(180deg); }
.fc .face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(60,40,20,.12); }
.fc .back-face { transform: rotateY(180deg); padding: 26px 22px; justify-content: center; }
.fc .pic { flex: 1; background: linear-gradient(135deg, var(--paper-2), #E4D3B8); display: grid; place-items: center; min-height: 0; }
.fc .pic img { width: 100%; height: 100%; object-fit: cover; }
.fc .pic .emo { font-size: 110px; }
.fc .cap { padding: 18px 18px 20px; display: flex; align-items: center; gap: 10px; }
.fc .cap .en { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.fc .cap .ipa { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.fc .hint { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 99px; }
.fc .back-face .zh { font-size: 30px; font-weight: 700; color: var(--accent); }
.fc .back-face .en { font-family: var(--serif); font-size: 20px; margin-top: 6px; }
.fc .back-face .desc { font-size: 15px; line-height: 1.7; margin-top: 16px; }
.fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fc-actions .btn { margin: 0; }

/* ---------- Quiz ---------- */
.q-top { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.q-prompt { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.q-prompt .pic { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--paper-2), #E4D3B8); display: grid; place-items: center; }
.q-prompt .pic img { width: 100%; height: 100%; object-fit: cover; }
.q-prompt .pic .emo { font-size: 80px; }
.q-prompt .txt { padding: 16px 18px; }
.q-prompt .ask { font-size: 13px; color: var(--ink-2); }
.q-prompt .big { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.q-prompt .big.zh-big { font-family: var(--sans); }
.opts { display: grid; gap: 10px; margin-top: 14px; }
.opt { text-align: left; padding: 15px 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); font-size: 16px; transition: background .15s, border-color .15s; }
.opt.serif { font-family: var(--serif); font-size: 18px; }
.opt:active { transform: scale(.98); }
.opt.right { background: #E5EBD3; border-color: var(--olive); }
.opt.wrong { background: #F4DAD2; border-color: var(--accent); }
.result { text-align: center; padding: 40px 0 10px; }
.result .score { font-family: var(--serif); font-size: 72px; font-weight: 600; color: var(--accent); line-height: 1; }
.result p { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 30px); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 40; pointer-events: none; max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Categories ---------- */
.hero .intro { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.cat:active { transform: scale(.97); }
.cat .cover { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--paper-2), #E4D3B8); display: grid; place-items: center; }
.cat .cover img { width: 100%; height: 100%; object-fit: cover; }
.cat .cover .emo { font-size: 44px; }
.cat .cat-ic { position: absolute; left: 8px; bottom: 8px; z-index: 1; background: var(--card); border-radius: 10px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.cat .cat-body { padding: 10px 12px 12px; }
.cat .en { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.2; }
.cat .zh { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.cat .mini { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); }
.cat .mini .bar { height: 4px; }
.credits { margin-top: 12px; display: grid; gap: 8px; }
.cr { font-size: 13px; line-height: 1.6; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; word-break: break-word; }
.cr a { color: var(--accent); }

/* ---------- Hub ---------- */
.hub-head { text-align: center; padding: 36px 0 22px; }
.hub-head h1 { font-family: var(--serif); font-size: 44px; margin: 8px 0 6px; font-weight: 600; }
.hub-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.scene { display: block; width: 100%; text-align: left; border-radius: 22px; padding: 22px 20px 18px; margin-top: 14px; position: relative; overflow: hidden; }
.scene:active { transform: scale(.98); }
.scene-tag { font-size: 11px; letter-spacing: .25em; font-weight: 600; opacity: .75; }
.scene-title { font-size: 28px; font-weight: 700; margin-top: 14px; }
.scene-en { font-size: 14px; letter-spacing: .12em; margin-top: 2px; opacity: .85; }
.scene-desc { font-size: 14px; margin-top: 12px; line-height: 1.6; opacity: .9; }
.scene-meta { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: 13px; opacity: .85; }
.scene-meta .go { margin-left: auto; font-weight: 700; opacity: 1; }
.scene-food { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.scene-food .scene-tag { color: var(--accent); }
.scene-food .scene-title, .scene-food .scene-en { font-family: var(--serif); }
.scene-food .scene-ic { position: absolute; right: 18px; top: 16px; font-size: 44px; }
.scene-food .go { color: var(--accent); }
.scene-cq { background: #07060d; color: #e9f7ff; border: 1px solid #2a1f4a; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background-image: linear-gradient(rgba(0,240,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,240,255,.06) 1px, transparent 1px), radial-gradient(circle at 85% 10%, rgba(255,0,170,.35), transparent 55%), radial-gradient(circle at 10% 100%, rgba(0,240,255,.25), transparent 60%);
  background-size: 22px 22px, 22px 22px, auto, auto; box-shadow: inset 0 0 0 1px rgba(0,240,255,.15), 0 10px 30px rgba(80,0,120,.25); }
.scene-cq .scene-tag { color: #00f0ff; }
.scene-cq .scene-title { font-family: var(--sans); text-shadow: 0 0 12px rgba(255,0,170,.6); }
.scene-cq .scene-title .glitch { margin-left: 8px; color: #ff2bd6; position: relative; }
.scene-cq .scene-en { color: #00f0ff; letter-spacing: .3em; }
.scene-cq .go { color: #fff200; }
.glitch::before, .glitch::after { content: attr(data-t); position: absolute; left: 0; top: 0; opacity: .7; }
.glitch::before { color: #00f0ff; animation: gl1 2.6s infinite steps(1); }
.glitch::after { color: #fff200; animation: gl2 3.1s infinite steps(1); }
@keyframes gl1 { 0%, 92% { transform: none; clip-path: inset(0 0 100% 0); } 93% { transform: translate(-2px, -1px); clip-path: inset(10% 0 55% 0); } 96% { transform: translate(2px, 1px); clip-path: inset(60% 0 10% 0); } }
@keyframes gl2 { 0%, 88% { transform: none; clip-path: inset(0 0 100% 0); } 90% { transform: translate(2px, 0); clip-path: inset(40% 0 30% 0); } 94% { transform: translate(-2px, 1px); clip-path: inset(5% 0 75% 0); } }

/* ---------- Cyber theme (Chongqing) ---------- */
body.cyber {
  --paper: #07060d; --paper-2: #16122a; --card: #0e0b1c; --ink: #e9f7ff; --ink-2: #8a9cc2; --line: #2b2350;
  --accent: #ff2bd6; --olive: #00c8d6; --gold: #fff200;
  --serif: ui-monospace, "SF Mono", Menlo, "PingFang SC", monospace;
  background: #07060d;
  background-image: linear-gradient(rgba(0,240,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,240,255,.05) 1px, transparent 1px), radial-gradient(circle at 90% 0%, rgba(255,0,170,.28), transparent 45%), radial-gradient(circle at 0% 60%, rgba(0,240,255,.16), transparent 50%);
  background-size: 26px 26px, 26px 26px, auto, auto; background-attachment: fixed;
}
body.cyber::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
body.cyber .topbar { background: rgba(7,6,13,.85); border-bottom-color: rgba(0,240,255,.25); }
body.cyber .topbar .t { font-family: var(--serif); letter-spacing: .05em; color: #00f0ff; }
body.cyber .back { color: #00f0ff; }
body.cyber .hero .kicker { color: #00f0ff; letter-spacing: .25em; font-size: 11px; margin-top: 8px; font-family: var(--serif); }
body.cyber .hero h1 { color: #fff; text-shadow: 0 0 6px rgba(255,43,214,.9), 0 0 22px rgba(255,43,214,.5); position: relative; display: inline-block; }
body.cyber .hero h1::before, body.cyber .hero h1::after { content: attr(data-t); position: absolute; left: 0; top: 0; width: 100%; }
body.cyber .hero h1::before { color: #00f0ff; animation: gl1 3s infinite steps(1); }
body.cyber .hero h1::after { color: #fff200; animation: gl2 3.7s infinite steps(1); }
body.cyber .hero .intro { background: rgba(0,240,255,.06); border-color: rgba(0,240,255,.3); color: #cfe9ff; }
body.cyber .cat, body.cyber .term, body.cyber .mode, body.cyber .opt, body.cyber .q-prompt, body.cyber .fc .face, body.cyber .panel { border-color: rgba(0,240,255,.28); box-shadow: 0 0 0 1px rgba(255,43,214,.08), 0 0 18px rgba(0,240,255,.08); }
body.cyber .cat .cat-ic { background: #0e0b1c; box-shadow: 0 0 10px rgba(255,43,214,.6); }
body.cyber .mode.primary { background: linear-gradient(135deg, #ff2bd6, #7a2bff); box-shadow: 0 0 18px rgba(255,43,214,.45); }
body.cyber .dish { border-bottom-color: rgba(0,240,255,.18); }
body.cyber .dish .en, body.cyber .panel h2, body.cyber .fc .cap .en { color: #fff; }
body.cyber .dish .zh, body.cyber .panel .zh, body.cyber .fc .back-face .zh { color: #ff5ce1; }
body.cyber .thumb, body.cyber .cat .cover, body.cyber .panel .img, body.cyber .fc .pic, body.cyber .q-prompt .pic { background: linear-gradient(135deg, #1a1033, #071a2a); }
body.cyber .speak { background: #00f0ff; color: #07060d; box-shadow: 0 0 12px rgba(0,240,255,.7); }
body.cyber .speak.playing { background: #ff2bd6; }
body.cyber .btn { background: #00f0ff; color: #07060d; }
body.cyber .btn.done { background: linear-gradient(135deg, #ff2bd6, #7a2bff); color: #fff; }
body.cyber .btn.ghost { background: transparent; color: #00f0ff; border-color: #00f0ff; }
body.cyber .note { background: rgba(255,242,0,.06); }
body.cyber .opt.right { background: rgba(0,240,255,.15); border-color: #00f0ff; }
body.cyber .opt.wrong { background: rgba(255,43,214,.15); border-color: #ff2bd6; }
body.cyber .result .score { color: #00f0ff; text-shadow: 0 0 20px rgba(0,240,255,.7); }
body.cyber .check.on { background: #00c8d6; border-color: #00c8d6; }
body.cyber .bar { background: #1d1838; }
body.cyber .footer, body.cyber .ipa { color: #7f90b5; }
body.cyber .panel h2 { font-size: 22px; }
body.cyber .dish .en { font-size: 16px; }
body.cyber .cat .en { font-size: 14px; }
body.cyber .fc .cap .en { font-size: 19px; }

/* ---------- Restaurant Talk ---------- */
.talk-entry { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 22px; padding: 18px 16px; border-radius: 18px; background: var(--olive); color: #fff; box-shadow: 0 8px 20px rgba(94,107,52,.25); }
.talk-entry:active { transform: scale(.98); }
.talk-entry .ic { font-size: 30px; }
.talk-entry .en { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.talk-entry .zh { font-size: 13px; opacity: .85; margin-top: 2px; }
.talk-entry .arrow { margin-left: auto; font-size: 22px; opacity: .8; }
.dlg { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px 10px; }
.dlg-head { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; }
.dlg-head b { font-size: 15px; margin-right: auto; }
.dlg-btn { font-size: 12px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); }
.dlg-btn:active { transform: scale(.95); }
.bub { max-width: 84%; padding: 9px 12px 10px; border-radius: 16px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.bub.srv { background: var(--paper-2); border-bottom-left-radius: 4px; }
.bub.you { background: var(--olive); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bub.on { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.02); }
.bub .who { font-size: 10px; letter-spacing: .08em; opacity: .65; margin-bottom: 2px; }
.bub .ben { font-family: var(--serif); font-size: 16px; line-height: 1.35; }
.bub .bzh { font-size: 13px; opacity: .75; margin-top: 4px; line-height: 1.45; }
.dlg.nozh .bzh { display: none; }
.dlg-hint { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 6px; }
