/* VR: 2 nửa màn hình (mỗi mắt một nửa), HUD / câu hỏi nhân đôi. Chữ VT323 như phần còn lại của game. */
body.vr-on #hud, body.vr-on #chips, body.vr-on #side, body.vr-on #dock, body.vr-on #tip, body.vr-on #labels, body.vr-on #fx, body.vr-on #vig, body.vr-on #sheetWrap, body.vr-on #toasts { display: none !important; }
body.vr-on #tint { display: none; }
body.vr-on #stage { z-index: 1; }
#vr { position: fixed; inset: 0; z-index: 50; display: flex; pointer-events: none; font-family: 'Nunito', ui-rounded, system-ui, sans-serif; font-weight: 800; color: #fff6dc; }
#vr[hidden], #vrIntro[hidden] { display: none; }
.vr-eye { position: relative; flex: 1 1 50%; width: 50%; height: 100%; overflow: hidden; }
.vr-eye + .vr-eye { border-left: 2px solid #000; }
.vr-in { position: absolute; inset: 0 8%; }                                  /* chừa viền: thấu kính Cardboard cắt rìa */
.vr-hud { position: absolute; left: 0; right: 0; bottom: 5%; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: clamp(14px, 3.6vh, 26px); text-shadow: 0 2px 0 #1d1608, 0 0 6px #000; }
.vr-hud span { background: rgba(29, 22, 8, .62); padding: 0 7px; }
.vr-ret { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.vr-ret i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; --p: 0deg; background: conic-gradient(#ffe27a var(--p), rgba(255, 255, 255, .28) 0); -webkit-mask: radial-gradient(circle, transparent 10px, #000 11px, #000 15px, transparent 16px); mask: radial-gradient(circle, transparent 10px, #000 11px, #000 15px, transparent 16px); }
.vr-ret i::after { content: ''; position: absolute; left: 13px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #1d1608; }
.vr-ret b { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: max-content; max-width: 40vw; font-weight: 400; font-size: clamp(14px, 3.4vh, 24px); text-align: center; background: rgba(29, 22, 8, .7); padding: 0 8px; white-space: nowrap; }
.vr-ret b:empty { display: none; }
.vr-toast { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-size: clamp(15px, 3.8vh, 28px); opacity: 0; transition: opacity .25s; }
.vr-toast.on { opacity: 1; }
.vr-toast { text-shadow: 0 2px 0 #1d1608, 0 0 8px #000; }
#vrFade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .12s; }
#vrFade.on { opacity: .95; transition: none; }
#vrRotate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(0, 0, 0, .8); font-size: 26px; }
#vrRotate[hidden] { display: none; }
/* câu hỏi */
.vr-quiz { position: absolute; inset: 9% 0 12% 0; background: rgba(40, 28, 10, .9); border: 3px solid #e6c36a; box-shadow: 0 0 0 3px #1d1608; }
.vr-quiz[hidden] { display: none; }
.vq-top { position: absolute; left: 3%; right: 3%; top: 2%; height: 11%; display: flex; align-items: center; justify-content: space-between; font-size: clamp(13px, 3.2vh, 22px); }
.vq-x { padding: 0 6px; font-style: normal; background: #6a3a1c; }
.inq .vr-ret { display: none; }
.vq-x.hv, .vq-o.hv { outline: 3px solid #ffe27a; background-color: #8a5a2c; }
.vq-stem { position: absolute; left: 4%; right: 4%; top: 15%; height: 22%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: clamp(16px, 4.6vh, 34px); line-height: 1; overflow: hidden; overflow-wrap: anywhere; }
.vq-hint { position: absolute; left: 4%; right: 4%; top: 37%; text-align: center; font-size: clamp(11px, 2.7vh, 19px); color: #d9c38a; }
.vq-o { position: absolute; display: flex; align-items: center; gap: 5px; padding: 0 6px; background: #5a3a1c; font-size: clamp(12px, 3.2vh, 22px); line-height: .95; overflow: hidden; overflow-wrap: anywhere; box-sizing: border-box; }
.vq-o span { flex: none; width: 1.3em; height: 1.3em; display: grid; place-items: center; background: #e6c36a; color: #1d1608; }
.vq-o.ok { background: #3f8a2f; } .vq-o.no { background: #a83a2c; }
.vq-res { position: absolute; left: 6%; right: 6%; top: 40%; height: 5%; display: grid; place-items: center; font-size: clamp(13px, 3.2vh, 22px); background: rgba(0, 0, 0, .55); }
.vq-cur { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; --p: 0deg; background: conic-gradient(#ffe27a var(--p), rgba(255, 255, 255, .3) 0); -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px, #000 14px, transparent 15px); mask: radial-gradient(circle, transparent 9px, #000 10px, #000 14px, transparent 15px); pointer-events: none; }
.vq-cur::after { content: ''; position: absolute; left: 12px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #1d1608; }
/* màn giới thiệu */
#vrIntro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .72); padding: 12px; font-family: 'Nunito', ui-rounded, system-ui, sans-serif; font-weight: 800; }
.vr-card { max-width: 460px; max-height: 92vh; overflow: auto; background: #f4e7c4; color: #3a2a14; box-shadow: 0 0 0 4px #3a2a14, 0 0 0 8px #e6c36a; padding: 14px 16px; font-size: 21px; line-height: 1.05; }
.vr-card h2 { margin: 0 0 8px; font-size: 30px; }
.vr-card p { margin: 6px 0; }
.vr-q { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.vr-q button, .vr-go button { font: inherit; font-size: 22px; padding: 4px 10px; background: #e6d3a0; border: 3px solid #3a2a14; color: #3a2a14; cursor: pointer; }
.vr-q button.on { background: #8fd16a; }
.vr-go { display: flex; gap: 8px; margin-top: 8px; }
.vr-go #vrGo { background: #6bbf45; flex: 1; font-size: 26px; }
#vrNote { display: block; margin-top: 6px; color: #6a5a3a; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { #vrFade { transition: none; } }

/* ---- Giao diện VR mềm (05/11/2026): bo tròn, chữ Nunito; cỡ chữ nhỏ lại vì Nunito cao hơn VT323 ---- */
.vr-hud { font-size: clamp(12px, 3vh, 21px); } .vr-ret b { font-weight: 800; font-size: clamp(12px, 3vh, 20px); border-radius: 99px; }
.vr-toast { font-size: clamp(13px, 3.2vh, 23px); }
.vr-quiz { border: 3px solid #f0cf7a; border-radius: 22px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); background: rgba(48, 32, 14, .92); }
.vq-top { font-size: clamp(11px, 2.7vh, 19px); } .vq-x { border-radius: 99px; padding: 2px 10px; }
.vq-stem { font-size: clamp(15px, 4vh, 30px); font-weight: 900; } .vq-hint { font-size: clamp(10px, 2.3vh, 16px); }
.vq-o { border-radius: 14px; background: #6a4624; font-size: clamp(11px, 2.7vh, 19px); line-height: 1.1; } .vq-res { border-radius: 14px; font-size: clamp(12px, 2.7vh, 19px); }
.vr-card { border-radius: 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); font-size: 16px; font-weight: 700; line-height: 1.35; } .vr-card h2 { font-size: 24px; font-weight: 900; }
.vr-q button, .vr-go button { border-radius: 14px; border: 2px solid #3a2a14; font-size: 16px; font-weight: 800; padding: 7px 12px; } .vr-go #vrGo { font-size: 19px; } #vrNote { font-size: 14px; } #vrRotate { font-size: 20px; }
