/* =====================================================================
   Vương quốc Halogen – giao diện sáng kiểu bảng điều khiển
   Thẻ kính trắng bo góc trên nền oải hương, khu 3D nổi ở giữa
   ===================================================================== */
:root {
    --bg-1: #f6f7ff;
    --bg-2: #e9ecfb;
    --ink: #1c2147;
    --ink-2: #4a5178;
    --muted: #8a90b0;
    --line: rgba(120, 130, 190, 0.18);
    --glass: rgba(255, 255, 255, 0.78);
    --glass-strong: rgba(255, 255, 255, 0.92);
    --shadow: 0 10px 30px rgba(70, 80, 160, 0.12), 0 2px 6px rgba(70, 80, 160, 0.06);
    --blue: #3b6cff;
    --blue-2: #5b8cff;
    --violet: #8b5cf6;
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;
    --gold-soft: #b7791f;
    --radius: 18px;
    --nav-w: 232px;
    --hero-w: 268px;
    --right-w: 312px;
    --top-h: 64px;
    --bottom-h: 206px;
    --gap: 16px;
    --font: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
button { font-family: inherit; }
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    color: var(--ink);
    background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

#arVideo { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 0; }
body.ar-active #arVideo { display: block; }
#canvasWrap { position: fixed; inset: 0; z-index: 1; }
#labelWrap { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#sceneFade {
    position: fixed; inset: 0; z-index: 3; pointer-events: none;
    background: radial-gradient(ellipse at 55% 45%, rgba(246, 247, 255, 0.4), rgba(233, 236, 251, 0.95));
    opacity: 0; transition: opacity 0.35s ease;
}
#sceneFade.on { opacity: 1; transition: none; }

/* thẻ kính dùng chung */
.card, .nav-rail, .top-bar .crumb, .host, .kpi, .action-dock, .modal-card, .lightbox-card {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}
.card { border-radius: var(--radius); padding: 14px 16px; min-height: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.card-head h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.muted { color: var(--muted); font-size: 12px; }

/* ---------------- Nhãn nổi trong cảnh 3D ---------------- */
.tag-3d {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 1);
    color: var(--ink);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(60, 70, 150, 0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}
.tag-3d:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(60, 70, 150, 0.25); }
.tag-3d.done { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.tag-3d.action {
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    animation: tagGlow 2.2s ease-in-out infinite;
}
@keyframes tagGlow {
    0%, 100% { box-shadow: 0 6px 16px rgba(59, 108, 255, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(59, 108, 255, 0.16), 0 8px 22px rgba(59, 108, 255, 0.45); }
}
.tag-3d.info {
    pointer-events: none;
    cursor: default;
    background: rgba(255, 255, 255, 0.8);
    font-size: 11.5px;
    padding: 3px 8px;
    box-shadow: 0 3px 8px rgba(60, 70, 150, 0.12);
}
.tag-3d.info.title { color: var(--violet); font-weight: 700; }

/* ---------------- Cột điều hướng ---------------- */
.nav-rail {
    position: fixed; z-index: 20;
    top: var(--gap); left: var(--gap); bottom: var(--gap);
    width: var(--nav-w);
    border-radius: 22px;
    padding: 18px 14px;
    display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; }
.brand-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(60, 70, 150, 0.12); }
.brand-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); }
.nav-label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 12px 8px 6px; }
.scene-tabs { display: flex; flex-direction: column; gap: 4px; }
.scene-tab, .nav-tool {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left;
    background: transparent; border: 0;
    padding: 9px 10px; border-radius: 12px;
    color: var(--ink-2); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.scene-tab .ico, .nav-tool .ico {
    display: grid; place-items: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.85); font-size: 15px;
    box-shadow: 0 2px 6px rgba(60, 70, 150, 0.08);
}
.scene-tab .lbl { flex: 1; line-height: 1.25; }
.scene-tab small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.scene-tab:hover, .nav-tool:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.scene-tab.active { background: linear-gradient(135deg, rgba(91, 140, 255, 0.16), rgba(139, 92, 246, 0.12)); color: var(--blue); }
.scene-tab.active .ico { background: #fff; box-shadow: 0 4px 12px rgba(59, 108, 255, 0.25); }
.scene-tab .state { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.scene-tab.completed .state { background: var(--green); box-shadow: inset 0 0 0 4px #ecfdf3; }
.scene-tab.completed .state::after { content: '✓'; display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 10px; font-weight: 800; }
.nav-tools { display: flex; flex-direction: column; gap: 2px; }
.nav-tool { font-size: 13px; }
.nav-tool.active { color: var(--green); }
.nav-tool.warn { color: #c2410c; }

/* ---------------- Thanh trên ---------------- */
.top-bar {
    position: fixed; z-index: 20;
    top: var(--gap); left: calc(var(--nav-w) + var(--gap) * 2); right: var(--gap);
    height: 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    pointer-events: none;
}
.top-bar > * { pointer-events: auto; }
.crumb { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 14px; min-width: 0; max-width: 560px; }
.crumb-ico { color: var(--muted); font-size: 18px; }
.crumb-title { font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
    background: rgba(59, 108, 255, 0.1); color: var(--blue);
    padding: 3px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.top-right { display: flex; align-items: center; gap: 8px; }
.pill {
    height: 36px; padding: 0 14px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid #fff; box-shadow: var(--shadow);
    color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pill.active { color: #15803d; }
.pill.active::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.host { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 6px; border-radius: 14px; }
.host-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #bae6fd, #7dd3fc); font-weight: 800; font-size: 12px; }
.host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host b { display: block; font-size: 12.5px; }
.host small { font-size: 11px; color: var(--muted); }

/* ---------------- Cột giới thiệu + số liệu ---------------- */
.hero {
    position: fixed; z-index: 10;
    top: calc(var(--top-h) + var(--gap) + 12px); left: calc(var(--nav-w) + var(--gap) * 2 + 8px);
    width: var(--hero-w);
    display: flex; flex-direction: column; gap: 10px;
}
.hero h1 { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-bottom: 6px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; }
.kpi-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 17px; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); }
.next-scene-btn {
    margin-top: 6px; height: 46px; border-radius: 14px; border: 0; padding: 0 18px;
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
    color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 22px rgba(59, 108, 255, 0.35);
    animation: pulseBtn 1.8s infinite;
}
@keyframes pulseBtn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ---------------- Cột phải ---------------- */
.right-col {
    position: fixed; z-index: 15;
    top: calc(var(--top-h) + var(--gap) + 8px); right: var(--gap);
    bottom: calc(var(--bottom-h) + var(--gap) * 2);
    width: var(--right-w);
    display: flex; flex-direction: column; gap: 12px;
    overflow-y: auto;
    padding-bottom: 2px;
}
.mission-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.mission-progress .bar, .journey .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(120, 130, 190, 0.15); overflow: hidden; }
.mission-progress .bar span, .journey .bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--blue-2), var(--violet)); transition: width 0.5s ease; }
.mission-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.mission-list li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.7); }
.mission-list li .chk { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid #c7cbe6; }
.mission-list li.done { color: #166534; background: #f0fdf4; }
.mission-list li.done .chk { border: 0; background: var(--green); position: relative; }
.mission-list li.done .chk::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.journey { display: flex; flex-direction: column; gap: 9px; }
.journey .row { display: grid; grid-template-columns: 26px 1fr 38px; align-items: center; gap: 8px; font-size: 12px; }
.journey .row .ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff; font-size: 13px; box-shadow: 0 2px 6px rgba(60, 70, 150, 0.08); }
.journey .row .name { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.journey .row .pct { text-align: right; font-weight: 700; color: var(--ink-2); }
.journey .row.current .name { color: var(--blue); }
.journey .row.done .bar span { background: linear-gradient(90deg, #4ade80, var(--green)); }
.card-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.card-chip {
    background: #fff; border: 1px solid var(--line); color: var(--ink-2);
    padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.card-chip:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------- Hàng thẻ dưới ---------------- */
.bottom-row {
    position: fixed; z-index: 15;
    left: calc(var(--nav-w) + var(--gap) * 2); right: var(--gap); bottom: var(--gap);
    height: var(--bottom-h);
    display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: var(--gap);
}
.bottom-row > .card { overflow: hidden; display: flex; flex-direction: column; }
.dialogue-box { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(91, 140, 255, 0.1), rgba(139, 92, 246, 0.08)); }
.avatar-badge {
    flex-shrink: 0; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
    color: #fff; font-weight: 800; font-size: 17px;
    box-shadow: 0 6px 14px rgba(60, 70, 150, 0.2);
}
.avatar-badge img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.speaker-name { font-size: 12.5px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.speaker-text { font-size: 13.5px; line-height: 1.5; color: var(--ink); user-select: text; max-height: 60px; overflow-y: auto; }
.dialogue-log { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.dialogue-log li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.dialogue-log li time { color: var(--muted); font-size: 11.5px; }
.dialogue-log li span { overflow: hidden; text-overflow: ellipsis; }
.cast-list { list-style: none; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.cast-list li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; }
.cast-list .ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--c, #94a3b8); }
.cast-list .ava img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.cast-list b { display: block; font-size: 12.5px; }
.cast-list small { font-size: 11px; color: var(--muted); }
.cast-list .status { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef0fb; color: var(--muted); }
.cast-list .status.on { background: #dcfce7; color: #15803d; }
.var-list { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.var-row { display: flex; justify-content: space-between; gap: 8px; background: rgba(255, 255, 255, 0.75); padding: 5px 9px; border-radius: 8px; }
.var-name { color: #4f46e5; }
.var-val { color: #b45309; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Thanh thao tác thí nghiệm ---------------- */
.action-dock {
    position: fixed; z-index: 18;
    bottom: calc(var(--bottom-h) + var(--gap) * 2);
    left: var(--dock-cx, 50%);
    transform: translateX(-50%);
    border-radius: 18px;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
    max-width: var(--dock-max, 760px);
}
.dock-label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 2px; }
.dock-btn {
    background: #fff; color: var(--ink-2);
    border: 1px solid var(--line);
    padding: 7px 12px; border-radius: 11px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: 0.15s;
}
.dock-btn:hover { border-color: var(--blue); color: var(--blue); }
.dock-btn.selected { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(59, 108, 255, 0.35); }
.dock-btn.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #451a03; border-color: transparent; }

/* ---------------- Thông báo nhỏ ---------------- */
.toast {
    position: fixed; z-index: 40;
    top: calc(var(--top-h) + var(--gap) + 8px); left: var(--dock-cx, 50%);
    transform: translate(-50%, -12px);
    background: #fff; color: #15803d;
    border-radius: 14px; padding: 10px 16px;
    font-size: 13px; font-weight: 700;
    box-shadow: var(--shadow);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Hộp câu hỏi ---------------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(28, 33, 71, 0.28);
    backdrop-filter: blur(6px);
}
.modal-card { width: min(620px, 95vw); border-radius: 22px; padding: 22px 26px; background: var(--glass-strong); animation: pop 0.22s ease; }
@keyframes pop { from { transform: scale(0.96) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.close-x { background: #f1f2fb; border: 0; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 14px; cursor: pointer; }
#modalQuestion { font-size: 19px; font-weight: 700; line-height: 1.45; margin-bottom: 16px; }
.modal-body { display: flex; flex-direction: column; gap: 9px; }
.quiz-opt {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1.5px solid #e4e7f6; color: var(--ink);
    padding: 12px 14px; border-radius: 14px;
    font-size: 14.5px; text-align: left; cursor: pointer; transition: 0.15s;
}
.quiz-opt:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(59, 108, 255, 0.12); }
.quiz-opt.correct { border-color: var(--green); background: #f0fdf4; color: #166534; font-weight: 700; }
.quiz-opt.wrong { border-color: var(--red); background: #fef2f2; color: #991b1b; animation: shake 0.3s; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt:disabled:not(.correct):not(.wrong) { opacity: 0.55; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ask-input {
    width: 100%; min-height: 90px;
    background: #fff; border: 1.5px solid #e4e7f6; border-radius: 14px;
    padding: 12px; color: var(--ink); font-size: 14.5px; font-family: inherit; user-select: text;
}
.ask-input:focus { outline: none; border-color: var(--blue); }
.btn-primary {
    background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff;
    border: 0; padding: 10px 18px; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 14px rgba(59, 108, 255, 0.3);
}
.modal-feedback { margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.modal-feedback.ok { background: #f0fdf4; color: #166534; }
.modal-feedback.err { background: #fff7ed; color: #9a3412; }

/* ---------------- Thẻ ảnh cỡ lớn ---------------- */
.lightbox-card { border-radius: 20px; padding: 14px; max-width: min(1120px, 94vw); max-height: 90vh; display: flex; flex-direction: column; gap: 10px; background: var(--glass-strong); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font-weight: 700; }
.lightbox-card img { max-width: 100%; max-height: calc(90vh - 70px); object-fit: contain; border-radius: 12px; }

/* ---------------- Màn hình chờ ---------------- */
.loading-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, var(--bg-2) 70%);
}
.loader-box { text-align: center; }
.loader-atoms { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.loader-atoms span {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--c); color: #fff; font-weight: 800;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent);
    animation: bob 1.2s ease-in-out infinite;
}
.loader-atoms span:nth-child(2) { animation-delay: 0.15s; }
.loader-atoms span:nth-child(3) { animation-delay: 0.3s; }
.loader-atoms span:nth-child(4) { animation-delay: 0.45s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.loader-box h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.loader-sub { color: var(--muted); margin: 4px 0 18px; }
.loader-bar { width: 300px; height: 8px; margin: 0 auto 10px; border-radius: 4px; background: rgba(120, 130, 190, 0.18); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-2), var(--violet)); transition: width 0.2s; }
#loadingStatus { font-size: 12.5px; color: var(--muted); }

.hidden { display: none !important; }

/* camera nền: thẻ kính đậm hơn cho dễ đọc trên hình camera */
body.ar-active .card, body.ar-active .nav-rail { background: rgba(255, 255, 255, 0.9); }

/* ---------------- Màn hình nhỏ hơn ---------------- */
@media (max-width: 1500px) {
    :root { --hero-w: 230px; --right-w: 286px; }
    .hero h1 { font-size: 28px; }
    .hero p { display: none; }
}
@media (max-width: 1360px) {
    /* bỏ cột giới thiệu (giữ nút sang cảnh), thu gọn điều hướng chỉ còn biểu tượng */
    :root { --nav-w: 76px; --hero-w: 0px; }
    .hero h1, .hero p, .hero .kpi { display: none; }
    .brand > div, .scene-tab .lbl, .scene-tab .state, .nav-label { display: none; }
    .nav-tool { font-size: 0; justify-content: center; }
    .nav-tool .ico { font-size: 15px; }
    .scene-tab, .nav-tool { justify-content: center; padding: 8px 0; }
    .brand { justify-content: center; }
}
@media (max-height: 760px) {
    :root { --bottom-h: 168px; }
    .dialogue-log { display: none; }
}
