/* outbid.casa — BID THE SKYLINE 3D shell
 * 深色玻璃 HUD；按钮蓝框深底、状态克制一致（无渐变内联）。 */
:root {
  --ink: #e8f2ff;
  --dim: #8fa8c9;
  --line: #7ab8ff;
  --bg: #05070a;
  --glass: rgba(10, 15, 24, 0.78);
  --hair: rgba(122, 184, 255, 0.28);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Archivo Black", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---- 顶栏 ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px;
  background: linear-gradient(rgba(5, 7, 10, 0.82), rgba(5, 7, 10, 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.logo { color: var(--line); font-size: 18px; }
.name { letter-spacing: 0.14em; font-size: 15px; }
.tag { color: var(--dim); font-style: normal; font-family: system-ui, sans-serif; font-size: 13px; }
.views { display: flex; gap: 8px; margin-left: auto; }
.views button, .lang button, .cta, .x {
  padding: 7px 16px; border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--hair);
  color: var(--ink); font-size: 13px; letter-spacing: 0.04em;
  transition: border-color 0.18s, background 0.18s;
}
.views button:hover, .lang button:hover, .cta:hover, .x:hover,
.lang button[aria-current="true"] { border-color: var(--line); background: rgba(16, 26, 42, 0.9); }
.lang { display: flex; gap: 6px; }
.lang button { padding: 7px 10px; color: var(--dim); }
.lang button[aria-current="true"] { color: var(--ink); }

/* ---- 排行榜 ---- */
#board {
  position: fixed; left: 22px; top: 86px; z-index: 9;
  width: 240px; max-height: 60vh; overflow: auto;
  padding: 14px 16px;
  background: var(--glass); border: 1px solid var(--hair); border-radius: 12px;
  backdrop-filter: blur(10px);
}
#board h2 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 10px;
}
#boardList { list-style: none; }
#boardList li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px; font-size: 13px;
}
#boardList li + li { margin-top: 2px; }
#boardList li:hover { background: rgba(122, 184, 255, 0.08); }
#boardList .r { width: 26px; color: var(--dim); font-size: 12px; }
#boardList .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
#boardList .b { flex: 1; letter-spacing: 0.06em; }
#boardList .p { color: var(--dim); font-size: 12px; font-family: system-ui, sans-serif; }
#board .note { margin-top: 10px; font-size: 11px; color: var(--dim);
  font-family: system-ui, sans-serif; }

/* ---- CTA ---- */
.cta {
  position: fixed; right: 26px; bottom: 30px; z-index: 10;
  border-color: var(--line); letter-spacing: 0.08em;
}
.cta.small { position: static; width: 100%; margin-top: 14px; }

/* ---- 品牌卡 ---- */
#card {
  position: fixed; right: 26px; bottom: 96px; z-index: 11;
  width: 260px; padding: 18px 18px 16px;
  background: var(--glass); border: 1px solid var(--hair); border-radius: 14px;
  backdrop-filter: blur(12px);
  transform: translateY(8px); opacity: 0; pointer-events: none;
  transition: transform 0.22s, opacity 0.22s;
}
#card.show { transform: none; opacity: 1; pointer-events: auto; }
#card .x { position: absolute; top: 8px; right: 8px; padding: 2px 9px; font-size: 15px; }
#card .rank { color: var(--dim); font-size: 12px; letter-spacing: 0.1em; }
#card .bname { font-size: 22px; letter-spacing: 0.08em; margin: 4px 0 6px; }
#card .price { font-family: system-ui, sans-serif; color: var(--line); font-size: 18px; }

/* ---- 榜单实时状态与价格变动 ---- */
#board .note.live::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #5ce1a6; margin-right: 6px;
  box-shadow: 0 0 6px rgba(92, 225, 166, 0.8);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse { 50% { opacity: 0.35; } }
#boardList li.bidflash .p {
  color: #ffd166;
  animation: bidflash 1.4s ease;
}
@keyframes bidflash {
  0% { text-shadow: 0 0 14px rgba(255, 209, 102, 0.95); }
  100% { text-shadow: none; }
}

/* ---- toast / fps / boot / fatal ---- */
#toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 20;
  transform: translate(-50%, 16px);
  padding: 10px 20px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--hair);
  font-family: system-ui, sans-serif; font-size: 13px; color: var(--ink);
  opacity: 0; pointer-events: none; transition: transform 0.25s, opacity 0.25s;
  max-width: min(80vw, 480px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#fps {
  position: fixed; left: 10px; bottom: 8px; z-index: 5;
  color: var(--dim); font: 11px/1 system-ui, sans-serif; opacity: 0.6;
}
#boot {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: var(--bg); color: var(--dim);
  font: 13px system-ui, sans-serif; letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity 0.4s;
}
#boot.off { opacity: 0; pointer-events: none; }
#fatal { display: none; position: fixed; inset: 0; z-index: 40; place-items: center;
  background: var(--bg); color: #ff8f8f; font: 13px system-ui, sans-serif; padding: 40px; text-align: center; }

/* ---- 响应式 ---- */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .views { order: 3; width: 100%; margin-left: 0; }
  .views button { flex: 1; padding: 7px 4px; font-size: 12px; }
  #board { left: 12px; top: 118px; width: 178px; max-height: 38vh; padding: 10px 12px; }
  #boardList li { font-size: 12px; }
  #board .note { display: none; }
  .cta { right: 12px; bottom: 18px; }
  #card { right: 12px; left: 12px; width: auto; bottom: 74px; }
  #bidform { left: 12px; right: 12px; width: auto; }
  #bidform .row2 { grid-template-columns: 1fr; }
}

/* ---- M3：出价表单 / 奠基石 ---- */
#bidform {
  position: fixed; z-index: 12; left: 50%; top: 50%;
  transform: translate(-50%, -48%);
  width: min(92vw, 380px); max-height: 86vh; overflow-y: auto;
  padding: 18px 18px 16px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
#bidform.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
#bidform h3 {
  margin: 0 0 2px; font: 700 15px/1.2 var(--display, system-ui, sans-serif);
  letter-spacing: 0.14em; color: var(--ink); text-transform: uppercase;
}
#bidform .mode { margin: 0 0 12px; font: 12px/1.4 system-ui, sans-serif; color: var(--dim); }
#bidform form { display: grid; gap: 10px; }
#bidform label { display: grid; gap: 4px; }
#bidform label > span {
  font: 600 10px/1 system-ui, sans-serif; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim);
}
#bidform input {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(5, 10, 18, 0.72);
  border: 1px solid var(--hair); color: var(--ink);
  font: 14px/1.3 system-ui, sans-serif; outline: none;
  transition: border-color 0.15s;
}
#bidform input:focus { border-color: var(--line); }
#bidform input::placeholder { color: rgba(143, 168, 201, 0.55); }
#bidform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#bidform .help {
  margin: -4px 0 0; font: 12px/1.4 system-ui, sans-serif; color: var(--dim);
}
#bidform .hp { position: absolute; left: -6000px; opacity: 0; height: 0; }
#bidform .pay {
  margin: -4px 0 0; font: 11px/1.4 system-ui, sans-serif;
  color: rgba(143, 168, 201, 0.8); text-align: center;
}
#bidform .status { margin: 0; font: 12px/1.5 system-ui, sans-serif; min-height: 18px; }
#bidform .status.ok { color: #5ce1a6; }
#bidform .status.err { color: #ff8f6b; }
#bidform .cta { position: static; width: 100%; }
#bidform .cta:disabled { opacity: 0.5; cursor: wait; }
#board .corner {
  margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--hair);
  font: 11px/1.5 system-ui, sans-serif; color: rgba(143, 168, 201, 0.85);
}

