
:root{--ink:#26292a;--cream:#f9f3e6;--ivory:#fffaf0;--terra:#ab4e36;--mustard:#ddab5b;--mint:#cedbd0;--dust:#dfc4b3;--muted:#74756d;--line:#d9d0be}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans","Noto Sans SC",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b96248;outline-offset:3px}.paper-noise{position:fixed;inset:0;pointer-events:none;opacity:.2;z-index:20;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}.site-header{max-width:1460px;margin:auto;padding:26px 62px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:11px}.seal{display:inline-grid;place-items:center;border:1.7px solid var(--ink);width:46px;height:46px;color:#fff;background:var(--terra);font-size:29px;font-family:"Noto Sans SC",sans-serif;transform:rotate(-8deg);box-shadow:3px 3px 0 var(--ink)}.seal.small{width:30px;height:30px;font-size:17px;box-shadow:2px 2px 0 var(--ink)}.identity-copy{display:flex;flex-direction:column;gap:1px}.identity-copy b{font-size:18px;letter-spacing:2px;font-family:"Noto Sans SC"}.identity-copy small{letter-spacing:2.6px;font-size:8.5px;font-weight:700;color:#81766b}nav{display:flex;align-items:center;gap:37px;font-size:13px;font-weight:700}nav a{transition:color .2s}nav a:hover{color:var(--terra)}.nav-progress,.primary-btn{background:var(--ink);color:#fff;border:2px solid var(--ink);border-radius:2px;padding:15px 19px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:32px;transition:transform .2s,background .2s,box-shadow .2s}.nav-progress span,.primary-btn span{font-size:18px}.nav-progress:hover,.primary-btn:hover{transform:translate(-2px,-2px);box-shadow:4px 4px 0 var(--mustard)}.mobile-menu{display:none}.hero{max-width:1460px;margin:auto;padding:86px 62px 85px;display:grid;grid-template-columns:.92fr 1.08fr;gap:44px;align-items:center;min-height:620px}.hero-copy{position:relative;z-index:1}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.1px;display:flex;align-items:center;gap:10px;color:var(--terra)}.tiny-star{font-size:18px}.eyebrow .line{width:42px;height:1px;background:#b8ad9c}.scribble{margin-top:38px;color:#a77253;font-size:13px;letter-spacing:3.2px;font-family:"Noto Sans SC"}.hero h1,h2{font-family:"Playfair Display",Georgia,serif;font-weight:600;letter-spacing:-2.8px}.hero h1{font-size:clamp(39px,4.65vw,73px);line-height:1.2;margin:17px 0 25px;white-space:nowrap}.hero h1 em,h2 em{font-weight:500;color:var(--terra)}.lead{color:#666358;font-size:15px;line-height:2;max-width:480px}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:30px}.primary-btn{background:var(--terra);border-color:var(--terra);padding:16px 22px;gap:35px;font-size:13px}.text-link{font-size:12px;font-weight:700;border-bottom:1px solid var(--ink);padding-bottom:7px}.text-link span{margin-left:9px}.hero-note{display:flex;align-items:center;gap:12px;color:#8a8273;font-size:11px;line-height:1.8;margin-top:56px}.hero-note strong{font-weight:600;color:#665e53}.round-mark{display:grid;place-items:center;flex:none;border:1px solid #b6a999;border-radius:50%;width:39px;height:39px;color:var(--terra);font-size:19px}.hero-visual{position:relative;min-width:0}.hero-art{height:460px;box-shadow:10px 10px 0 #d9b9a8;border:2px solid #353333;overflow:hidden;background:#dfded0}.hero-art svg{display:block;width:100%;height:100%}.art-corner{position:absolute;z-index:2;top:-21px;left:-19px;border:1px solid var(--ink);background:#fff7db;transform:rotate(-3deg);padding:12px 16px;font-size:10px;letter-spacing:1px;font-weight:700;box-shadow:3px 3px 0 #dcbf92}.art-corner span{margin-left:20px;font-size:9px;color:#95846d}.art-caption{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.1px;margin-top:22px;color:#8a8378}.floating-stamp{position:absolute;bottom:46px;right:-16px;display:grid;place-items:center;width:87px;height:87px;background:#f8dba2;border:2px solid var(--ink);border-radius:50%;transform:rotate(13deg);font-family:"Noto Sans SC";font-size:16px;text-align:center;font-weight:700;line-height:1.6;box-shadow:4px 4px 0 #a44f35}.ticker{border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);background:#f1dbc0;overflow:hidden;white-space:nowrap}.ticker div{font-family:"Noto Sans SC";font-size:15px;letter-spacing:33px;padding:12px 0;animation:move 40s linear infinite;color:#73553f;min-width:max-content}@keyframes move{to{transform:translateX(-25%)}}.section-wrap{max-width:1460px;margin:auto;padding-left:62px;padding-right:62px}.journey{padding-top:109px;padding-bottom:114px}.section-top{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:42px}.section-top h2,.how h2,.ending h2{font-size:clamp(34px,3.7vw,54px);line-height:1.24;margin:11px 0 0}.section-top>p{max-width:370px;color:#766e63;font-size:13px;line-height:2;margin:0}.chapter-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.chapter{position:relative;border:1.5px solid #373330;background:#fffaf0;min-height:345px;display:flex;flex-direction:column;overflow:hidden;transition:transform .2s,box-shadow .2s}.chapter:hover{transform:translateY(-4px);box-shadow:5px 6px 0 #d3b697}.chapter-art{height:145px;overflow:hidden;border-bottom:1.5px solid #373330;background:#dfdfcd}.chapter-art svg{width:100%;height:100%;display:block}.chapter-body{padding:17px 17px 18px;display:flex;flex-direction:column;flex:1}.chapter-index{color:var(--terra);letter-spacing:1.7px;font-size:9px;font-weight:800}.chapter h3{font-size:18px;line-height:1.3;font-family:"Noto Sans SC";margin:9px 0 3px}.chapter .sub{font-size:10px;color:#a15c49;margin:0 0 12px;font-weight:600}.chapter p{font-size:11px;line-height:1.7;color:#786e61;margin:0 0 20px}.chapter-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e4dbcb;margin-top:auto;padding-top:12px;font-size:10px;font-weight:700}.chapter-footer .chapter-arrow{font-size:19px}.chapter.active{background:#f8e6cb}.chapter.active:before{position:absolute;z-index:2;right:9px;top:9px;content:"ĐANG MỞ";background:#973e2e;color:white;font-size:8px;font-weight:700;letter-spacing:1px;padding:7px 8px;transform:rotate(5deg)}.chapter.locked .chapter-footer{color:#a49b91}.how{border-top:1px solid #d9d0be;border-bottom:1px solid #d9d0be;padding-top:80px;padding-bottom:80px;display:grid;grid-template-columns:1fr 1.15fr;gap:95px}.how h2{font-size:clamp(30px,3.2vw,46px)}.how-items{display:grid;gap:19px}.how-items article{display:grid;grid-template-columns:58px 1fr;column-gap:15px;padding-bottom:17px;border-bottom:1px solid #d9d0be}.how-number{grid-row:1/3;color:#ad644a;font-family:"Playfair Display";font-size:22px}.how-items h3{font-size:14px;margin:0 0 6px}.how-items p{font-size:12px;line-height:1.8;color:#777165;margin:0}.ending{text-align:center;position:relative;padding-top:100px;padding-bottom:110px}.ending-star{color:var(--terra);font-size:35px;margin-bottom:10px}.ending .eyebrow{justify-content:center}.ending h2{margin:15px 0 12px}.ending p{font-size:12px;color:#84796c;margin-bottom:32px}footer{border-top:1px solid var(--line);padding:27px 62px;max-width:1460px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:10px;color:#8b7f70}.footer-brand{display:flex;align-items:center;gap:14px;color:var(--ink)}.footer-brand strong{font-size:12px}.game-overlay[hidden]{display:none}.game-overlay{position:fixed;inset:0;z-index:30;background:#262723ed;display:grid;place-items:center;padding:20px;overflow:auto}.game-shell{width:min(1120px,100%);background:#faf5e8;border:2px solid #30302e;box-shadow:12px 12px 0 #100f0ecc;max-height:calc(100dvh - 40px);overflow:auto}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px}.back-button,.option-button,.tool-btn{border:0;background:transparent;font-size:11px;font-weight:700;color:var(--ink)}.back-button{padding:8px}.game-chapter{font-size:10px;letter-spacing:1.5px;font-weight:800;display:flex;align-items:center;gap:9px}.dot{height:8px;width:8px;background:#bb6148;border-radius:50%}.game-top-right{display:flex;gap:6px}.option-button{border:1px solid #cfbeac;padding:8px 10px;font-size:10px}.option-button[aria-pressed=false]{opacity:.45}.scene-progress{height:4px;background:#d6cbba}.scene-progress div{height:100%;width:0;background:#a54e39;transition:width .3s}.stage{height:min(55vh,510px);min-height:345px;position:relative;background:#d9d9ca;overflow:hidden}.stage-scene,.stage-scene svg{width:100%;height:100%}.stage-scene svg{display:block}.scene-day{position:absolute;top:16px;left:20px;background:#f8efd5e8;padding:10px 13px;border:1px solid #534b43;font-size:9px;letter-spacing:1.7px;font-weight:700;transform:rotate(-2deg)}.story-ui{position:absolute;left:24px;bottom:17px;width:min(670px,calc(100% - 48px));background:#fff9eeef;border:2px solid #332e29;box-shadow:6px 6px 0 #493a2b86;padding:19px 24px 15px;backdrop-filter:blur(3px)}.speaker-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#8b412d}.speaker-dot{font-size:17px}.emote-tag{font-size:9px;font-weight:500;color:#938475;margin-left:3px}.talk-content{padding:10px 0 5px;min-height:93px}.talk-line{font-family:"Noto Sans SC";font-size:clamp(19px,2.4vw,28px);font-weight:600;letter-spacing:1.2px}.pinyin-text{font-size:12px;margin-top:5px;color:#a56954}.viet-text{font-size:12px;margin-top:5px;color:#6e695f}.scene-toolbelt{display:flex;align-items:center;gap:17px;border-top:1px solid #d8d0c2;padding-top:10px;margin-top:6px}.tool-btn{color:#846954;padding:0}.tool-btn:hover{text-decoration:underline}.grow{flex:1}#stepText{font-size:9px;color:#8d8073}.player-panel{padding:17px 24px 16px}.user-instruction{font-size:11px;color:#786b5e;margin-bottom:10px}.answer-row{display:flex;gap:9px}.input-wrap{display:flex;align-items:center;flex:1;gap:10px;background:#fff;border:1.5px solid #bbae9e;padding:0 12px;min-width:0}.input-wrap:focus-within{border-color:#a34e38}.type-icon{font-size:20px;color:#b36c50}.input-wrap input{width:100%;background:transparent;border:none;outline:none;height:45px;font-size:13px;color:#252321}.mic-btn{width:49px;border:1.5px solid #b8a999;background:#ece1cd;font-size:23px}.mic-btn.listening{background:#b34f3b;color:white;animation:micpulse 1s infinite}@keyframes micpulse{50%{box-shadow:0 0 0 6px #b34f3b40}}.send-btn{background:#ac4d36;color:white;border:none;padding:0 24px;font-size:12px;font-weight:700}.send-btn:hover{background:#873b2b}.feedback{font-size:12px;line-height:1.6;min-height:28px;padding-top:7px;color:#76634a}.feedback.good{color:#35624b}.feedback.bad{color:#a64d36}.game-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#897d71;padding-top:8px;border-top:1px solid #e7dcca}.game-bottom button{background:transparent;border:0;color:#8b7365;font-size:10px;text-decoration:underline}.toast{position:fixed;z-index:50;right:24px;bottom:22px;background:#292b28;color:white;padding:13px 18px;box-shadow:4px 4px 0 #bb765e;font-size:12px;opacity:0;pointer-events:none;transform:translateY(20px);transition:.25s}.toast.visible{opacity:1;transform:translateY(0)}.ending .primary-btn{margin:auto}
@media(max-width:1050px){.site-header{padding:22px 32px}.hero{padding:70px 32px;gap:25px}.hero h1{white-space:normal;font-size:52px}.hero-art{height:390px}.chapter-track{grid-template-columns:repeat(3,1fr)}.section-wrap{padding-left:32px;padding-right:32px}.how{gap:40px}}
@media(max-width:690px){.site-header{padding:15px 18px}.identity-copy b{font-size:15px}.identity-copy small{font-size:7px}.seal{width:37px;height:37px;font-size:21px}.site-header nav{display:none;position:absolute;top:66px;right:12px;left:12px;background:#fff8e9;z-index:12;padding:18px;border:1px solid #333;flex-direction:column;align-items:stretch;gap:16px}.site-header nav.open{display:flex}.mobile-menu{display:block;background:transparent;border:1px solid var(--ink);padding:5px 10px;font-size:19px}.hero{display:flex;flex-direction:column;padding:43px 18px 57px;min-height:0;gap:54px;align-items:stretch}.hero h1{font-size:43px;letter-spacing:-1.8px}.scribble{margin-top:25px}.lead{font-size:13px}.hero-actions{gap:16px;flex-wrap:wrap}.hero-note{margin-top:29px}.hero-art{height:305px;box-shadow:7px 7px 0 #d9b9a8}.art-corner{left:0;top:-23px;padding:8px;font-size:8px}.art-corner span{margin-left:5px}.floating-stamp{width:68px;height:68px;font-size:12px;right:-6px;bottom:28px}.section-wrap{padding-left:18px;padding-right:18px}.journey{padding-top:68px;padding-bottom:65px}.section-top{display:block}.section-top h2,.how h2,.ending h2{letter-spacing:-1.5px}.section-top p{margin-top:19px;font-size:12px}.chapter-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:5px 5px 10px;margin:0 -5px}.chapter{min-width:235px;scroll-snap-align:start}.chapter-art{height:130px}.how{display:block;padding-top:62px;padding-bottom:62px}.how-items{margin-top:40px}.ending{padding-top:65px;padding-bottom:80px}footer{padding:24px 18px;flex-wrap:wrap;font-size:9px}footer>span:nth-child(2){display:none}.game-overlay{padding:0;display:block}.game-shell{max-height:100dvh;height:100dvh;width:100%;border:0;box-shadow:none;display:flex;flex-direction:column}.game-top{padding:11px 11px;gap:6px}.game-chapter{font-size:8px;letter-spacing:0}.back-button{font-size:19px}.back-button span{display:none}.game-top-right{gap:3px}.option-button{padding:7px 5px;font-size:8px}.stage{flex:1;height:auto;min-height:0}.story-ui{left:10px;bottom:10px;width:calc(100% - 20px);padding:14px 16px 10px;box-shadow:3px 3px 0 #493a2b86}.scene-day{top:8px;left:9px;font-size:7px;padding:8px}.talk-content{min-height:76px;padding:6px 0}.talk-line{font-size:21px}.speaker-label{font-size:12px}.scene-toolbelt{gap:12px}.tool-btn{font-size:10px}.player-panel{padding:13px 11px}.answer-row{gap:5px}.input-wrap{padding:0 7px}.input-wrap input{font-size:11px;height:43px}.mic-btn{width:42px}.send-btn{font-size:10px;padding:0 10px}.game-bottom{font-size:9px}.game-bottom span{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* v2 interactive engine UX */
[hidden]{display:none!important}
.next-row{display:flex;align-items:center;justify-content:space-between;min-height:34px;gap:10px;font-size:10px;color:#897769}
.next-btn{border:1.5px solid #2b302c;background:#304c3d;color:#fff;padding:10px 16px;font-size:12px;font-weight:700;transition:transform .18s,background .18s}
.next-btn:hover{background:#1c3e32;transform:translateY(-1px)}
.feedback{white-space:normal;line-height:1.7;min-height:33px}
.feedback.neutral{color:#805b38}
#assistBtn{color:#a05239;text-decoration:underline}
.completion-pane{padding:17px 20px 18px;background:#f6e7cd;border:1px solid #a68b72;margin:9px 0}
.completion-head{font-size:10px;letter-spacing:1.8px;color:#924a36;font-weight:800}
.completion-pane h3{font-family:"Playfair Display","Noto Sans SC",serif;font-size:28px;margin:8px 0 5px}
.completion-pane p{margin:8px 0;font-size:12px;color:#5f5c51;line-height:1.75}
.completion-actions{display:flex;align-items:center;gap:17px;justify-content:space-between;margin-top:16px}
.completion-actions span{font-size:11px;color:#8b7b6b}
#answerForm[hidden]{display:none!important}
@media(max-width:690px){.completion-pane{padding:11px}.completion-pane h3{font-size:23px}.completion-actions{flex-wrap:wrap}.next-btn{padding:9px 11px;font-size:11px}.next-row{min-height:28px}.feedback{font-size:11px;min-height:24px}}

/* v3 scene-specific learning loop */
.scene-objective{font-size:10px;line-height:1.6;letter-spacing:.25px;color:#87614d;margin-bottom:5px;font-weight:700}
.learning-strip{font-size:11px;line-height:1.65;color:#544f46;background:#f0e4d0;border-left:3px solid #aa7053;padding:9px 11px;margin:5px 0 11px}
.completion-actions{justify-content:flex-start;flex-wrap:wrap}
#retakeExamBtn{background:#a8553f;border-color:#a8553f}
@media(max-width:690px){.learning-strip{font-size:10px;padding:7px;margin:3px 0 7px}.scene-objective{font-size:9px;margin-bottom:4px}.completion-actions{gap:8px}}
