/* 病毒獵人 VR 遊戲頁（字級一律用 rem，1.4.4） */
html, body { margin: 0; height: 100%; background: #0b1430; overflow: hidden; font-family: "Noto Sans TC", system-ui, sans-serif; color: #fff; }
canvas { display: block; touch-action: none; }
.fhcvh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 0.2rem solid #fde047; outline-offset: 0.15rem; }

.fhcvh-skip { position: fixed; left: 0.5rem; top: -4rem; z-index: 30; background: #fde047; color: #1a1300; padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 700; }
.fhcvh-skip:focus { top: 0.5rem; }

#fhcvh-hint { position: fixed; top: 0.6rem; left: 50%; transform: translateX(-50%); font-size: 0.85rem; background: rgba(0,0,0,.6); padding: 0.4rem 0.9rem; border-radius: 999px; white-space: nowrap; pointer-events: none; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; }

#fhcvh-overlay { position: fixed; left: 0; right: 0; bottom: 0; padding: 0.75rem 0.75rem 1rem; display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
#fhcvh-overlay button, .fhcvh-btn { font: inherit; font-size: 1.05rem; padding: 0.75rem 1.25rem; border-radius: 0.9rem; border: 0; background: #2dd4bf; color: #06231f; cursor: pointer; font-weight: 700; text-decoration: none; display: inline-block; }
#fhcvh-overlay button.alt { background: #a78bfa; color: #1e0b4b; }
#fhcvh-overlay button:disabled { background: #475569; color: #e2e8f0; cursor: not-allowed; }
#fhcvh-overlay .fhcvh-ghost { color: #e2e8f0; padding: 0.75rem 1rem; }
#fhcvh-status { width: 100%; text-align: center; font-size: 0.85rem; min-height: 1em; }

/* 鍵盤操作清單：平常藏起來，按 Tab 進入時出現在右側（2.1.1、2.4.7） */
#fhcvh-keys { position: fixed; right: 0.75rem; top: 3rem; z-index: 20; width: min(22rem, calc(100% - 1.5rem)); max-height: calc(100% - 9rem); overflow: auto; background: rgba(8,15,40,.94); border: 0.15rem solid #2dd4bf; border-radius: 0.9rem; padding: 0.6rem 0.75rem; transform: translateX(120%); }
#fhcvh-keys:focus-within, #fhcvh-keys:target { transform: none; }
#fhcvh-keys h2 { font-size: 1rem; margin: 0 0 0.4rem; }
#fhcvh-keys ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
#fhcvh-keys button { width: 100%; text-align: left; font: inherit; font-size: 1rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; border: 0.1rem solid #475569; background: #16295c; color: #fff; cursor: pointer; }
#fhcvh-keys button:hover { background: #1e3a8a; }
body.fhcvh-in-xr #fhcvh-keys, body.fhcvh-in-xr #fhcvh-hint { display: none; }

/* 只能用 VR 眼鏡時的說明頁 */
#fhcvh-gate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1rem; background: #0b1430; overflow: auto; }
#fhcvh-gate[hidden] { display: none; }
.fhcvh-gate-card { max-width: 36rem; background: #16295c; border: 0.15rem solid #2dd4bf; border-radius: 1.2rem; padding: 1.5rem; line-height: 1.7; font-size: 1.05rem; }
.fhcvh-gate-card h2 { margin-top: 0; font-size: 1.6rem; }
.fhcvh-url { font-size: 1.15rem; font-weight: 700; background: #0b1430; padding: 0.6rem 0.9rem; border-radius: 0.6rem; word-break: break-all; color: #fde047; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.fhcvh-gate-qr { width: 12rem; max-width: 100%; background: #fff; padding: 0.5rem; border-radius: 0.6rem; }
.fhcvh-gate-qr svg { width: 100%; height: auto; display: block; }
