/* New client: boot screen, entrance (login) window and small additions to the lobby styles. */
/* before login the page shows the same tile as the lobby (img/bg.png from 0,0, no vignette) - matched
   pixel for pixel against the Flash login screen; only the registration form has the artwork behind it */

/* ---------- boot / loading ---------- */
/* First paint, before any script has loaded: the loading artwork at once (53 KB preview under the full image),
   so nobody sees an empty page; js/loader.js then takes over with the live progress bar. */
html { background: #070405; }
#boot { position: fixed; inset: 0; z-index: 59; background: #050304 center / cover no-repeat;
  background-image: url(../img/loading-bg.jpg), url(../img/loading-bg-small.jpg); }
#boot > * { display: none; }
#boot[hidden] { display: none; }
/* page background behind the lobby panels (only the gaps show): the loading artwork, darkened - panels stay green */
body { background: #0a0405 center / cover no-repeat fixed;
  background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.6)), url(../img/loading-bg-nobar.jpg), url(../img/loading-bg-small.jpg); }
/* login / registration: the same artwork, darkened so the forms stay readable */
body.pre-login { background: #050304 center / cover no-repeat fixed;
  background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.62)), url(../img/loading-bg-nobar.jpg), url(../img/loading-bg-small.jpg); }
body.pre-login .entbg { background: transparent !important; }
#boot[hidden] { display: none; }
.boot-text { color: #b9c2b0; font: 700 14px/1 'PT Sans', Tahoma, sans-serif; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.boot-bar { height: 12px; border: 1px solid #6f7a63; background: #20251c; padding: 1px; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#7dd23b, #3c8a10); transition: width .2s; }

/* ---------- entrance window (9-slice from the Flash entrance art) ---------- */
#entrance { position: fixed; inset: 0; display: grid; place-items: center; z-index: 10; }
#entrance[hidden] { display: none; }
.ent-win {
  position: relative; width: 430px; padding: 34px 22px 18px; color: #d9dccf;
  font: 12px/1.2 Tahoma, 'PT Sans', sans-serif;
  border: 11px solid transparent;
  border-image: url(../entrance/win_tl.png) 0 fill; /* fallback, replaced below */
  background: url(../entrance/win_tile.jpg) #5a5c58;
  box-shadow: 0 0 0 1px #2b2c29, 0 6px 30px rgba(0,0,0,.6);
  border-radius: 4px;
  border-image: none;
}
.ent-win::before { /* inner bevel like the Flash window */
  content: ''; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.4);
}
.ent-tab {
  position: absolute; left: 50%; top: -27px; transform: translateX(-50%);
  width: 112px; height: 27px; display: grid; place-items: center;
  background: url(../entrance/win_tile.jpg) #5a5c58; border-radius: 4px 4px 0 0;
  box-shadow: 0 0 0 1px #2b2c29, inset 0 1px 0 rgba(255,255,255,.22);
  color: #fff; font: 700 11px/1 Tahoma, sans-serif; letter-spacing: .5px;
}
.ent-links { display: flex; justify-content: space-between; margin: -10px 0 12px 60px; }
.ent-links a { color: #6cf33b; text-decoration: underline; font-size: 11px; }
.ent-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ent-row > span { width: 92px; text-align: right; flex: none; }
.inp {
  flex: 1; height: 30px; display: block; position: relative;
  background: url(../entrance/input_l.png) left no-repeat, url(../entrance/input_r.png) right no-repeat, url(../entrance/input_c.png) left repeat-x;
  background-clip: padding-box;
}
.inp.wrong { background: url(../entrance/input_l_wrong.png) left no-repeat, url(../entrance/input_r_wrong.png) right no-repeat, url(../entrance/input_c_wrong.png) left repeat-x; }
.inp input { position: absolute; inset: 0 6px; width: calc(100% - 12px); height: 30px; border: 0; outline: 0; background: transparent; color: #fff; font: 13px Tahoma, sans-serif; }
.ent-bottom { margin-left: 100px; justify-content: space-between; margin-top: 10px; }
.cb { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.cb input { display: none; }
.cb i { width: 27px; height: 27px; background: url(../entrance/cb_up.png); }
.cb:hover i { background-image: url(../entrance/cb_over.png); }
.cb input:checked + i { background: url(../entrance/cb_check.png) center no-repeat, url(../entrance/cb_up.png); }
.ent-btn {
  width: 110px; height: 30px; border: 0; cursor: pointer; color: #fff; font: 13px Tahoma, sans-serif; text-shadow: 0 1px 1px #000;
  background: url(../entrance/btn_up_l.png) left no-repeat, url(../entrance/btn_up_r.png) right no-repeat, url(../entrance/btn_up_c.png) center / calc(100% - 14px) 100% no-repeat;
}
.ent-btn:hover { background: url(../entrance/btn_over_l.png) left no-repeat, url(../entrance/btn_over_r.png) right no-repeat, url(../entrance/btn_over_c.png) center / calc(100% - 14px) 100% no-repeat; }
.ent-btn:active { background: url(../entrance/btn_down_l.png) left no-repeat, url(../entrance/btn_down_r.png) right no-repeat, url(../entrance/btn_down_c.png) center / calc(100% - 14px) 100% no-repeat; }
.ent-btn:disabled { opacity: .6; cursor: default; }
.ent-err { min-height: 16px; margin-top: 8px; text-align: center; color: #ff6b5b; }

/* ---------- toast + glow ---------- */
/* (owner 2026-11-28 "I equip Isida in the garage, back in battle nothing happens") z-index 100 put the message UNDER the
   garage (its item strip covers the bottom): the 5-minute lock message was never seen. On top of everything, higher up */
.toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 30000; padding: 10px 18px; max-width: 70vw; border: 1px solid rgba(255,210,77,.55); border-radius: 4px;
  background: rgba(0,0,0,.85); color: #fff; font: 13px 'MyriadPro', Tahoma, sans-serif; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* blocked account (entrance.js showBlocked): only the message, big, over a dark screen; the red X goes back to login */
.ban-screen { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .86); padding: 16px; box-sizing: border-box; }
.ban-screen .ban-box { position: relative; width: min(640px, 100%); box-sizing: border-box; padding: 38px 34px 34px;
  border: 2px solid #b3241a; border-radius: 6px; background: rgba(28, 6, 5, .96);
  box-shadow: 0 8px 40px rgba(0,0,0,.8), 0 0 26px rgba(255,40,30,.3);
  color: #f3dede; font: 18px/1.45 'MyriadPro', Tahoma, sans-serif; text-align: center; }
.ban-screen .bn-title { color: #ff4a3a; font-size: 32px; line-height: 1.15; font-weight: bold; margin-bottom: 16px; text-shadow: 0 2px 6px #000; }
.ban-screen .bn-text { font-size: 18px; }
.ban-screen .bn-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(#e0392c, #a4170f); border: 1px solid #ff8a7f; color: #fff; font: bold 20px/30px Tahoma, sans-serif; }
.ban-screen .bn-x:hover { background: linear-gradient(#f24a3d, #b81d14); }
.glow { text-shadow: 0 0 2px #000, 0 0 3px #000, 0 0 4px #000; }
.iconbar { filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 2px #000); }
.chatout { font-size: 12px; color: #fff; user-select: text; }
.chatline { padding: 1px 0; word-wrap: break-word; white-space: normal; }

/* ---------- old lobby additions (unused) ---------- */
#comm #send { position: absolute; left: auto; top: auto; right: 7px; bottom: 5px; }
#xp > span { right: 8px; }
#topbar[hidden], #app[hidden] { display: none !important; }
#rankBig img { width: 60px; height: 60px; object-fit: contain; }
.rk { width: 14px; height: 14px; object-fit: contain; vertical-align: -3px; }
.chat-line { padding: 1px 0; word-wrap: break-word; }
.chat-line .rk { margin-right: 3px; }
.chat-line .nm { color: #59ff32; font-weight: 700; cursor: pointer; }
.chat-line .to { color: #59ff32; }
.chat-line.sys { color: #ffd34d; }
.chat-line.warn { color: #ff8f4d; }
.news-item { margin-bottom: 14px; }
.news-item .d { text-align: center; color: #9fb08c; margin-bottom: 6px; }
.news-item .t { white-space: pre-wrap; }
.bs-actions .b:disabled { opacity: .5; filter: grayscale(1); }
