/* 账号界面：照客户端 WB_HUB_Login / WBP_HUB_CompetitionCode / WBP_HUB_Upload / WBP_HUB_LoginWarning / WBP_WaitingRefereeStart 的贴图和文字 */
#acc { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 80; display: none; font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif; color: #fff; user-select: none; }
#acc.on { display: block; }
#acc .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #0b2a5c url(img/login_bg.jpg) center no-repeat; background-size: cover; }
/* 不用 min()/aspect-ratio/gap 这些新写法：有的浏览器（国产浏览器的兼容内核、老版本 Chrome）不认，框会被内容撑乱 */
#acc .acc-panel { position: absolute; left: 50%; top: 64%; width: 600px; height: 382px; margin: -191px 0 0 -300px; box-sizing: border-box; padding: 34px 50px 28px;
  background: url(img/border_login.png) center no-repeat; background-size: 100% 100%; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 660px), (max-height: 560px) { #acc .acc-panel { transform: scale(.75); } }
#acc .form { display: flex; flex-direction: column; }
#acc .form > * + * { margin-top: 16px; }
#acc .row { display: flex; align-items: center; width: 100%; }
#acc .row label { margin-right: 14px; flex: none; }
#acc .row label { width: 3.2em; font-size: 22px; font-weight: 700; letter-spacing: 2px; text-align: right; }
#acc .inp { flex: 1 1 auto; min-width: 0; height: 54px; background: url(img/input_bg.png) center / 100% 100% no-repeat; display: flex; align-items: center; }
#acc .inp input { width: 100%; height: 100%; box-sizing: border-box; padding: 0 20px; background: transparent; border: 0; outline: 0; color: #fff; font-size: 19px; font-family: inherit; }
#acc .inp input::placeholder { color: #8a8f96; }
#acc .inp:focus-within { filter: drop-shadow(0 0 4px #ffd52e); }
#acc .save { display: flex; align-items: center; margin-left: calc(3.2em + 14px); font-size: 17px; cursor: pointer; width: max-content; }
#acc .save i { margin-right: 10px; width: 26px; height: 25px; background: url(img/check_off.png) center / contain no-repeat; }
#acc .save.on i { background-image: url(img/check_on.png); }
#acc .btn { display: block; margin-left: auto; margin-right: auto; width: 62%; height: 56px; border: 0; border-radius: 10px 4px 10px 4px; cursor: pointer; transform: skewX(-8deg);
  background: #ffd52e; color: #111; font: italic 900 25px/56px 'Microsoft YaHei', sans-serif; letter-spacing: 8px; box-shadow: 0 3px 0 #a8860c; }
#acc .btn:hover { background: #ffe25e; } #acc .btn:active { transform: skewX(-8deg) translateY(2px); box-shadow: 0 1px 0 #a8860c; }
#acc .btn:disabled { opacity: .55; cursor: default; }
#acc .links { display: flex; justify-content: center; font-size: 16px; }
#acc .links a { color: #fff; cursor: pointer; text-decoration: none; } #acc .links a:hover { color: #008bff; }
#acc .msg { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 10px 26px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #ff6b5b;
  font-size: 18px; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; }
#acc .msg.show { opacity: 1; }
#acc .ver { position: absolute; right: 22px; bottom: 14px; font-size: 15px; opacity: .8; }

/* 注册页（客户端是内嵌浏览器打开 activity.drone-race.com） */
#acc-reg { position: fixed; top: 4%; bottom: 4%; left: 6%; right: 6%; z-index: 95; display: none; background: #111; border: 2px solid #9aa0a6; border-radius: 10px; overflow: hidden; }
#acc-reg.on { display: block; }
#acc-reg iframe { width: 100%; height: 100%; border: 0; background: #fff; }
#acc-reg .x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; background: rgba(0, 0, 0, .6) url(img/close.png) center / 60% no-repeat; border-radius: 50%; cursor: pointer; }
#acc-reg .alt { position: absolute; left: 12px; bottom: 10px; font-size: 13px; color: #333; background: rgba(255, 255, 255, .85); padding: 3px 8px; border-radius: 4px; }

/* 选择赛区（客户端 WB_Server） */
#acc .srv { display: none; }
#acc.srv-on .form { display: none; } #acc.srv-on .srv { display: flex; flex-direction: column; align-items: stretch; }
#acc .srv > * + * { margin-top: 12px; }
#acc .srv h3 { margin: 0 0 4px; text-align: center; font-size: 24px; letter-spacing: 4px; font-style: italic; }
#acc .srv .who { text-align: center; font-size: 15px; opacity: .8; }
#acc .srv .list { display: flex; flex-direction: column; max-height: 210px; overflow: auto; }
#acc .srv .list button { height: 48px; background: url(img/input_bg.png) center / 100% 100% no-repeat; border: 0; color: #fff; font: 600 19px 'Microsoft YaHei', sans-serif; cursor: pointer; }
#acc .srv .list button:hover:not(:disabled) { color: #ffd52e; } #acc .srv .list button:disabled { color: #666; cursor: default; }
#acc .srv .list button small { font-size: 13px; font-weight: 400; margin-left: 8px; }

/* 通用弹窗：比赛激活码、成绩上传、在别处登录 */
.acc-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px);
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif; color: #fff; }
.acc-modal.on { display: flex; }
.acc-box { position: relative; width: 600px; height: 257px; max-width: 94vw; background: url(img/border_upload.png) center no-repeat; background-size: 100% 100%; box-sizing: border-box;
  padding: 30px 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.acc-box > * + * { margin-top: 14px; }
.acc-box.big { height: 382px; background-image: url(img/border_login.png); }
.acc-box .x { position: absolute; right: 7%; top: 9%; width: 30px; height: 30px; background: url(img/close.png) center / contain no-repeat; cursor: pointer; opacity: .85; }
.acc-box .x:hover { opacity: 1; }
.acc-box h3 { margin: 0; font-size: 26px; font-style: italic; letter-spacing: 3px; }
.acc-box p { margin: 0; font-size: 17px; line-height: 1.7; }
.acc-box .accw { color: #ffd52e; }
.acc-box .err { min-height: 22px; color: #ff6b5b; font-size: 16px; opacity: 0; transition: opacity .25s; } .acc-box .err.show { opacity: 1; }
.acc-box .row { display: flex; align-items: center; width: 100%; }
.acc-box .row label { margin-right: 12px; flex: none; font-size: 20px; font-weight: 700; white-space: nowrap; }
.acc-box .inp { flex: 1 1 auto; min-width: 0; height: 52px; background: url(img/input_bg.png) center / 100% 100% no-repeat; }
.acc-box .inp input { width: 100%; height: 100%; box-sizing: border-box; padding: 0 18px; background: transparent; border: 0; outline: 0; color: #fff; font-size: 19px; font-family: inherit; letter-spacing: 1px; }
.acc-box .btn { min-width: 46%; height: 52px; padding: 0 28px; border: 0; border-radius: 10px 4px 10px 4px; cursor: pointer; transform: skewX(-8deg);
  background: #ffd52e; color: #111; font: italic 900 22px/52px 'Microsoft YaHei', sans-serif; letter-spacing: 4px; box-shadow: 0 3px 0 #a8860c; }
.acc-box .btn:hover { background: #ffe25e; } .acc-box .btn:disabled { background: #6b6b6b; color: #ddd; box-shadow: none; cursor: default; }
.acc-box .spin { width: 34px; height: 34px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #ffd52e; border-radius: 50%; animation: accspin .8s linear infinite; }
@keyframes accspin { to { transform: rotate(360deg); } }

/* 等待裁判开始比赛（WBP_WaitingRefereeStart） */
#acc-wait { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 85; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(0, 0, 0, .55);
  font-family: 'Microsoft YaHei', sans-serif; color: #fff; }
#acc-wait.on { display: flex; }
#acc-wait b { font-size: 48px; font-style: italic; letter-spacing: 6px; text-shadow: 0 3px 8px #000; }
#acc-wait span { margin-top: 22px; display: flex; align-items: center; font-size: 22px; }
#acc-wait i { margin-right: 14px; width: 46px; height: 52px; background: url(img/enter_key.png) center / contain no-repeat; }

/* 游戏菜单里的账号条 */
#acc-bar { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.8; }
#acc-bar b { font-size: 15px; } #acc-bar .vip { color: #ffd52e; } #acc-bar .novip { color: #ff8a7a; } #acc-bar .comp { color: #4fd18b; }
#acc-bar a { color: #8cc8ff; cursor: pointer; margin-right: 14px; text-decoration: underline; }
