/* 忘記密碼（js/forgotpw.js）：登入畫面密碼框右下那顆、按了跳出的視窗。視窗樣式照註冊視窗（#reg-ov），字放大給 30～50 歲玩家 */
/* 位置：密碼框右下、「登錄」上面那條空隙（下面那排「記住帳號密碼」「註冊帳號」中間放不下）。只有字、沒有框（位置沿用 pwreset1116 那版量好的） */
.login-register.login-forgot { left:auto; right:20.6%; top:85%; height:2.5%; padding:0 .4cqw; background:transparent; border:0; color:#e2bd6b; font-size:3.2cqw; letter-spacing:.06em; text-decoration:underline; text-underline-offset:.25em; text-shadow:0 1px 2px #000; }
.login-register.login-forgot:active { background:transparent; color:#ffe6a6; }
body.pcui .login-register.login-forgot { left:auto; right:34.4%; top:84%; height:2%; padding:0 .3cqw; font-size:max(13px, 1.8cqw); }
.login-register.login-forgot.need { color:#ffe6a6; animation:loginRegPulse 1.6s ease-in-out infinite; }

#fpw-ov { position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.65); padding:16px; overflow-y:auto; }
#fpw-ov .fpw-box { width:min(400px, 100%); margin:auto; display:flex; flex-direction:column; gap:12px; padding:18px; background:linear-gradient(#211a10, #120e08); border:1px solid #7d6c4c; border-radius:6px; box-shadow:0 6px 24px rgba(0,0,0,.7); color:#e8dcc0; font-family:"Microsoft JhengHei","PingFang TC",sans-serif; }
#fpw-ov b { text-align:center; font-size:21px; letter-spacing:.2em; color:#f2d77f; white-space:nowrap; }
#fpw-ov .fpw-page { display:flex; flex-direction:column; gap:10px; }
#fpw-ov .fpw-page[hidden] { display:none; }
@media (min-width:600px) {   /* 電腦、平板橫放：題目兩欄、視窗寬一點，1280×800 一頁放得下 */
  #fpw-ov .fpw-box { width:min(560px, 100%); }
  #fpw-ov .fpw-grid:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
  #fpw-ov .fpw-grid > :first-child { grid-column:1 / -1; }
}
#fpw-ov .fpw-q { display:flex; flex-direction:column; gap:4px; }
#fpw-ov .fpw-q > span { font-size:17px; color:#e2cf9f; white-space:nowrap; }
#fpw-ov input, #fpw-ov select { box-sizing:border-box; width:100%; height:48px; padding:0 10px; border:1px solid #5c4e35; border-radius:3px; background:#0c0c0c; color:#e8dcc0; font-size:18px; outline:none; font-family:inherit; }
#fpw-ov select { appearance:none; -webkit-appearance:none; background-image:linear-gradient(45deg, transparent 50%, #c9a65a 50%), linear-gradient(135deg, #c9a65a 50%, transparent 50%); background-position:calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size:6px 6px; background-repeat:no-repeat; padding-right:30px; }
#fpw-ov select:invalid { color:#8a7f6c; }
#fpw-ov option { color:#e8dcc0; background:#0c0c0c; }
#fpw-ov input:focus, #fpw-ov select:focus { border-color:#d9b25e; }
#fpw-ov input::placeholder { color:#8a7f6c; font-size:17px; }
#fpw-ov .fpw-code { margin:4px 0; padding:14px 8px; text-align:center; font-family:Consolas,"Courier New",monospace; font-size:34px; font-weight:700; letter-spacing:.18em; color:#fff2c4; background:#0c0c0c; border:1px dashed #c9a65a; border-radius:4px; user-select:all; -webkit-user-select:all; white-space:nowrap; }
#fpw-ov .fpw-tip { font-size:18px; line-height:1.5; color:#f0e2bd; text-align:center; }
#fpw-ov .fpw-tip > span { display:inline-block; white-space:nowrap; }
#fpw-ov .fpw-tip > span:not(:last-child)::after { content:"，"; }
@media (max-width:520px) { #fpw-ov .fpw-tip > span { display:block; } #fpw-ov .fpw-tip > span:not(:last-child)::after { content:none; } }
#fpw-ov .fpw-msg { min-height:20px; font-size:17px; color:#ff9a7a; text-align:center; white-space:nowrap; }
#fpw-ov .fpw-msg:empty { min-height:0; margin:-6px 0; }
#fpw-ov .fpw-msg.err { padding:8px 10px; font-weight:700; color:#ffd2c4; background:rgba(170,35,25,.35); border:1px solid #e0573f; border-radius:4px; white-space:normal; }
#fpw-ov .fpw-msg.ok { color:#bfe9a5; }
#fpw-ov .err-f { border-color:#e0573f; box-shadow:0 0 0 2px rgba(224,87,63,.35); }
#fpw-ov .fpw-btns { display:flex; gap:10px; }
#fpw-ov .fpw-btns button { flex:1; height:48px; border:1px solid #7d6c4c; border-radius:3px; background:#0c0c0c; color:#e2bd6b; font-size:18px; letter-spacing:.1em; cursor:pointer; font-family:inherit; white-space:nowrap; }
#fpw-ov .fpw-btns button[type=submit] { background:linear-gradient(180deg, #b8913f, #6e521f); color:#1c1306; font-weight:700; border-color:rgba(200,160,80,.8); }
#fpw-ov .fpw-btns button:disabled { opacity:.6; cursor:default; }
