/* Classic bitZino overrides — keep the 2015 archive geometry (780px header,
 * 750px content, 410px panels) and only undo what the modern CSS reset strips
 * (input borders/backgrounds/fonts) plus the label-above field layout. */

/* ============================================================
 * HEADER (used by BzClassicChrome — id="header")
 * ============================================================ */
#header{
  box-sizing: content-box !important;
  padding: 10px !important;
  width: 780px !important;
  height: 36px !important;
  margin: 10px auto !important;
}
#header .logo{
  width:140px !important;
  height:36px !important;
  display:inline-flex !important;
  align-items:center !important;
  padding-right:5px !important;
  vertical-align:middle;
}
#header .logo img{
  width:140px !important;
  height:28px !important;
  max-width:none !important;
  display:block !important;
}
#header .tagline{ display:none !important; }


/* Sign-in cluster — white boxes, black Login, underlined Register */
#header form{
  position:absolute !important;
  right:10px !important;
  top:50% !important;
  transform: translateY(-50%) !important;
  display:flex !important;
  align-items:center !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  text-align:right;
  white-space:nowrap;
}
#header form .user,
#header .user{ display:flex !important; align-items:center !important; }
#header form input[type=text],
#header form input[type=password]{
  background:#fff !important;
  color:#000 !important;
  border:1px solid #444 !important;
  border-radius:3px !important;
  padding:1px 3px !important;
  height:22px !important;
  width:120px !important;
  font: 16px arial, helvetica !important;
  line-height:1 !important;
  text-shadow:none !important;
  box-sizing:border-box !important;
  outline:none;
  margin:0 2px 0 0 !important;
  vertical-align:middle;
}
#header form input[type=text]::placeholder,
#header form input[type=password]::placeholder{ color:#777 !important; }
#header form input[type=submit]{
  height:24px !important;
  padding: 2px 8px !important;
  font: bold 16px arial, helvetica !important;
  color:#fff !important;
  border-radius:5px !important;
  border:1px solid #000 !important;
  margin:0 !important;
  line-height:1 !important;
  vertical-align:middle;
  cursor:pointer;
}
#header form .register{
  position:relative !important;
  top:0 !important;
  display:inline-block !important;
  margin:0 0 0 6px !important;
  padding:0 !important;
  color:#000 !important;
  font: 18px arial, helvetica !important;
  text-decoration: underline !important;
  border-radius: 0 !important;
  background:transparent !important;
  text-shadow: none !important;
  vertical-align:middle;
}
#header form .register:hover{ background:transparent !important; color:#000 !important; }
#header form .error{ color:#c00 !important; font-weight:bold; }

/* ============================================================
 * CONTENT PANEL
 * ============================================================ */
.content{ box-sizing: content-box !important; }
.content h1{
  font: bold 40px arial, helvetica, sans-serif !important;
  color:#cccccc !important;
  opacity: 1;
  margin: 0 0 10px !important;
  padding-bottom: 2px !important;
}

.content .inner_content{ padding: 0 50px !important; }
.content .inner_content > p:first-of-type,
.content .new > p:first-of-type{
  font-size: 16px;
  margin: 10px 0 20px;
  text-align: left;
}

/* ============================================================
 * REGISTER / LOGIN PANELS (.new .new_user)
 * ============================================================ */
.new_user, .shadow_box{ box-sizing: content-box !important; width:410px !important; margin:0 auto !important; padding:10px !important; }

.new .new_user h2,
.content h2{
  font-size: 14px !important;
  font-weight: bold !important;
  color: #cccccc !important;
  padding: 3px 0 !important;
  margin: 0 0 8px !important;
  text-align: center !important;
}
.new .new_user p{
  margin: 8px 0 12px;
  line-height: 1.35;
  font-size: 16px;
  color: #d9d9d9;
  text-shadow: #000 1px 1px;
}

/* Or divider */
.new .orbar{ width:199px !important; margin:30px auto !important; border-bottom:1px dotted #ccc !important; }
.new .or{ width:40px !important; margin:-40px auto 0 !important; padding:0 0 20px !important; text-align:center !important; background-color:#436082 !important; color:#ccc; font-size:16px; }

/* Fields — label above input (as on the archived register page) */
.new .field,
.content .new .field{
  position: static !important;
  height: auto !important;
  margin: 6px 0 10px !important;
  white-space: normal !important;
  line-height: 1.2;
}
.new .field label,
.content .new .field label{
  position: static !important;
  display: block !important;
  width: auto !important;
  margin: 0 0 3px !important;
  padding: 0 !important;
  text-align: left !important;
  right: auto !important;
  color: #cccccc !important;
  font-size: 16px;
  text-shadow: #000 1px 1px;
}
.content .new .field input[type=text],
.content .new .field input[type=email],
.content .new .field input[type=password],
.content .inner_content .new .field input[type=text],
.content .inner_content .new .field input[type=password]{
  display: block !important;
  width: 200px !important;
  height: 26px !important;
  padding: 1px 4px !important;
  margin: 0 !important;
  border: 1px solid #666 !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #000 !important;
  text-shadow: none !important;
  font: 20px arial, helvetica !important;
  box-sizing: border-box !important;
}

/* Submit buttons */
.new .field input[type=submit],
.new input[type=submit]{
  display:block !important;
  margin: 10px auto 2px !important;
  width: 140px !important;
  font-size: 16px !important;
  padding: 3px 5px !important;
  border-radius: 5px !important;
  border: 1px solid #000 !important;
  color:#fff !important;
  cursor:pointer;
}

/* ============================================================
 * FOOTER
 * ============================================================ */
#footer{ text-align:center !important; padding: 50px 0 10px !important; color:#999 !important; font-size:14px !important; }
#footer a{ color:#999 !important; text-decoration: underline !important; margin: 0 4px; }

/* ============================================================
 * MISC helpers used by other classic pages
 * ============================================================ */
.bz-chain-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.bz-chain-btn {
  color: #fff; background: #2c2c2c; border: 1px solid #000;
  border-radius: 5px; padding: 4px 10px; font-size: 14px; cursor: pointer;
  text-shadow: 1px 1px #000;
}
.bz-chain-btn.sel { background: #23425b; border-color: #5a8ac0; }
.bz-chain-btn:hover { background: #3a3a3a; }

.bz-deposit-addr { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.bz-deposit-addr img { background: #fff; padding: 4px; border-radius: 4px; }
.bz-deposit-addr .addr-input {
  flex: 1; padding: 6px; font-size: 14px; color: #000;
  border: 1px solid #000; border-radius: 4px; background: #fff;
  text-shadow: none; font-family: monospace;
}
.bz-deposit-qr { background: #fff; padding: 6px; border-radius: 4px; line-height: 0; flex: 0 0 auto; }
.bz-deposit-qr svg { width: 140px; height: 140px; display: block; }
.bz-deposit-addr-right { flex: 1 1 auto; min-width: 0; }
.bz-deposit-addr-label {
  display: block; font: bold 11px Arial; color: #999;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
@media (max-width: 640px) {
  .bz-deposit-addr { flex-direction: column; align-items: stretch; }
}

.content table { width: 100%; border-collapse: collapse; margin-top: 5px; }
.content table thead td {
  font-weight: bold; background-color: rgba(0,0,0,0.25);
  padding: 4px 8px;
}
.content table tbody td { padding: 4px 8px; border-top: 1px dotted #6a86a3; font-size: 14px; }
.content table tbody tr:nth-child(even) td { background: rgba(0,0,0,0.1); }

.bz-classic-err { color: #ff8888; text-align: center; margin: 10px; }
.bz-classic-ok  { color: #b6e5b6; text-align: center; margin: 10px; }
.bz-muted-classic { color: #a8bcd0; }

/* ============================================================
 * PAGE BACKGROUND — match the homepage gradient, no cutoff
 * ============================================================ */
html:has(#body), body:has(#body){
  background-color:#333 !important;
  background-image: radial-gradient(ellipse farthest-corner at top center, #333 0%, #333 60%, #222 100%) !important;
  background-attachment: fixed !important;
}
#body{
  min-height: 100vh !important;
  overflow: visible !important;
  background: transparent !important;
}

/* ============================================================
 * SIGNED-IN HEADER: centered BITZ wallet + settings cog
 * ============================================================ */
#header .bz-wallet-wrap{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
}
#header .bz-wallet{
  font:bold 16px/1 Arial, Helvetica, sans-serif !important;
  color:#fff !important;
  text-shadow:0 1px 0 rgba(0,0,0,.6);
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.25);
  border-radius:4px;
  padding:8px 14px;
  white-space:nowrap;
  cursor:pointer;
}
#header .bz-wallet:hover{ background:rgba(0,0,0,.5); }
#header .bz-wallet-menu{
  position:absolute; left:50%; top:calc(100% + 6px); transform:translateX(-50%);
  min-width:190px; z-index:60;
  background:#436082; border:1px solid #22344a; border-radius:5px;
  box-shadow:0 4px 10px rgba(0,0,0,.5); padding:6px 0;
  font:14px Arial, Helvetica, sans-serif; color:#ccc; text-shadow:#000 1px 1px;
}
#header .bz-wallet-menu .row{ display:flex; justify-content:space-between; padding:4px 12px; white-space:nowrap; }
#header .bz-wallet-menu .row span:last-child{ color:#fff; font-weight:bold; margin-left:20px; }
#header .bz-wallet-menu button.bz-cur-row{
  width:100%; background:none; border:0; cursor:pointer; align-items:center;
  font:14px Arial, Helvetica, sans-serif; color:#cccccc; text-shadow:#000 1px 1px;
  padding:5px 12px 5px 24px; position:relative; text-align:left;
}
#header .bz-wallet-menu button.bz-cur-row:hover{ background:rgba(0,0,0,.25); color:#fff; }
#header .bz-wallet-menu button.bz-cur-row[data-active="true"]{ background:rgba(0,0,0,.35); color:#fff; }
#header .bz-wallet-menu button.bz-cur-row[data-active="true"]::before{
  content:"\2713"; position:absolute; left:8px; top:50%; transform:translateY(-50%); color:#fff;
}
#header .bz-wallet-menu .sep{ border-top:1px dotted #6a86a3; margin:6px 0; }
#header .bz-wallet-menu a{
  display:block; padding:5px 12px; color:#cccccc !important; text-decoration:none !important;
}
#header .bz-wallet-menu a:hover{ background:rgba(0,0,0,.25); color:#fff !important; }
#header .bz-cog{
  position:absolute !important;
  right:12px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:32px; height:32px;
  color:#fff !important;
  opacity:.85;
}
#header .bz-cog:hover{ opacity:1; }

/* ============================================================
 * MY ACCOUNT — classic tabs, panels, key/value rows
 * ============================================================ */
.bz-tabs{ display:flex; gap:4px; justify-content:center; margin:0 0 16px; flex-wrap:wrap; }
.bz-tabs button{
  font:bold 14px Arial,Helvetica,sans-serif; padding:5px 14px; cursor:pointer;
  border:1px solid #000; border-radius:5px; color:#fff; text-shadow:1px 1px #000;
  background:#2c2c2c;
}
.bz-tabs button[data-active="true"]{ background:#23425b; border-color:#5a8ac0; }
.bz-tabs button:hover{ background:#3a3a3a; }

.new .new_user + .new_user, .content .new_user + .new_user{ margin-top:20px !important; }
.new_user.bz-wide{ width:650px !important; }

.bz-kv{
  display:flex; justify-content:space-between; gap:20px;
  padding:4px 0; border-bottom:1px dotted #6a86a3;
  font:16px arial, helvetica; color:#cccccc; text-shadow:#000 1px 1px;
}
.bz-kv strong{ color:#fff; }

/* selects inside classic fields match the text inputs */
.content .new .field select{
  display:block !important; width:212px !important; height:26px !important;
  padding:1px 4px !important; margin:0 !important;
  border:1px solid #666 !important; border-radius:5px !important;
  background:#fff !important; color:#000 !important; text-shadow:none !important;
  font:16px arial, helvetica !important; box-sizing:border-box !important;
}
.new_user table{ font-size:14px; color:#ccc; text-shadow:#000 1px 1px; }

/* ============================================================
 * YOUR SESSION page — session URL field + copy, action links
 * ============================================================ */
.bz-session-url-field{ display:flex !important; gap:8px; align-items:center; }
.bz-session-url-field input[type=text]{
  flex:1 1 auto !important; width:auto !important; min-width:0 !important;
  font:13px "Courier New", monospace !important;
}
.bz-session-url-field input[type=submit]{ flex:0 0 auto !important; margin:0 !important; }
.bz-session-url-note{ font-size:13px !important; color:#a8bcd0 !important; margin:10px 0 0 !important; }

.bz-session-actions{ display:flex !important; gap:28px; justify-content:center; padding:6px 0 2px; }
.bz-session-link,
.bz-session-link:visited{
  font:bold 18px arial, helvetica !important;
  color:#5aa9e6 !important;
  text-decoration:none !important;
  border-bottom:2px dotted #5aa9e6 !important;
  padding-bottom:2px;
  text-shadow:#000 1px 1px;
  cursor:pointer;
}
.bz-session-link:hover{ color:#8ec6f0 !important; border-bottom-color:#8ec6f0 !important; }



/* ============================================================
 * MOBILE (≤768px) — match the 94vw game-container width, keep the
 * wallet right-aligned just left of the settings cog.
 * ============================================================ */
@media (max-width: 768px){
  #header{
    box-sizing: border-box !important;
    width: 94vw !important;
    max-width: 94vw !important;
    height: 52px !important;
    padding: 6px 10px !important;
    margin: 10px auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
  }
  #header .logo{
    flex: 0 0 auto !important;
    width: 120px !important;
    height: 24px !important;
    padding-right: 0 !important;
  }
  #header .logo img{ width: 120px !important; height: 24px !important; }

  /* Signed in: wallet floats right, immediately left of the cog */
  #header .bz-wallet-wrap{
    position: static !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: 40px !important;
  }
  #header .bz-wallet{
    font-size: 14px !important;
    padding: 8px 12px !important;
    min-height: 36px;
    display: flex; align-items: center;
  }
  #header .bz-wallet-menu{ left: auto !important; right: 0 !important; transform: none !important; }
  #header .bz-cog{ right: 8px !important; width: 30px; height: 30px; }

  /* Signed out: keep the login cluster inside the bar */
  #header form{
    position: static !important;
    transform: none !important;
    margin-left: auto !important;
    gap: 4px;
    flex-wrap: nowrap !important;
  }
  #header form input[type=text],
  #header form input[type=password]{
    width: 62px !important;
    font-size: 13px !important;
    height: 30px !important;
    min-width: 0;
  }
  #header form input[type=submit]{ height: 30px !important; font-size: 13px !important; padding: 2px 8px !important; }
  #header form .register{ font-size: 14px !important; margin-left: 4px !important; }
}

/* The legacy in-game header stays hidden — only the React one shows. */
@media (max-width: 768px){
  .bz-game-mount #header{ display: none !important; }
}
