/* AUREA Conquest — personal base layer (patch #107 frontend).
   Neon gold/purple shell consistent with the portal; the base
   screen uses a 2.5D tilted facility yard. Damage is shown with
   pure CSS smoke / flame effects (no images). */
#cqbRoot { margin: 18px auto; max-width: 1080px; padding: 0 12px; }
.cqb-card {
  background: linear-gradient(165deg, rgba(24,20,48,.92), rgba(10,12,28,.94));
  border: 1px solid rgba(245,197,66,.45); border-radius: 16px;
  box-shadow: 0 0 18px rgba(160,90,255,.22), inset 0 0 24px rgba(245,197,66,.05);
  padding: 14px 16px; color: #EDEBFF;
}
.cqb-card h3 { margin: 0 0 8px; font-size: 17px; color: #F5C542;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cqb-sub { color: #A7ACC2; font-size: 13px; line-height: 1.55; }
.cqb-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cqb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 10px 0; }
.cqb-stat { background: rgba(255,255,255,.05); border: 1px solid #39415F;
  border-radius: 12px; padding: 8px 10px; }
.cqb-stat .k { font-size: 11px; color: #8B90A5; letter-spacing: .04em; }
.cqb-stat .v { font-size: 19px; font-weight: 800; color: #FFF; }
.cqb-stat .v small { font-size: 11px; color: #A7ACC2; font-weight: 600; }
.cqb-btn {
  border: 1px solid rgba(245,197,66,.6); color: #FFE9A8; cursor: pointer;
  background: linear-gradient(180deg, rgba(245,197,66,.16), rgba(160,90,255,.14));
  border-radius: 10px; padding: 7px 13px; font-weight: 700; font-size: 13px;
}
.cqb-btn:hover { filter: brightness(1.2); }
.cqb-btn:disabled { opacity: .45; cursor: not-allowed; }
.cqb-btn.primary { background: linear-gradient(90deg, #F5C542, #FF7A45);
  color: #231303; border-color: transparent; }
.cqb-btn.danger { border-color: rgba(255,77,79,.7); color: #FFB3B3; }
.cqb-chip { display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #39415F; border-radius: 999px; padding: 2px 9px;
  font-size: 12px; color: #D8D5F5; background: rgba(255,255,255,.05); }
.cqb-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.cqb-soon { border: 1px dashed rgba(245,197,66,.55); color: #F5C542;
  border-radius: 12px; padding: 12px 14px; font-weight: 700;
  background: rgba(245,197,66,.06); }
.cqb-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1);
  overflow: hidden; }
.cqb-bar > i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #F5C542, #B26BFF); }
.cqb-bar.hp > i { background: linear-gradient(90deg, #57E389, #F5C542); }
.cqb-bar.hp.low > i { background: linear-gradient(90deg, #FF7A45, #FF4D4F); }
.cqb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cqb-table td, .cqb-table th { padding: 5px 6px; border-bottom: 1px solid rgba(57,65,95,.6);
  text-align: left; vertical-align: middle; }
.cqb-input, .cqb-select {
  background: rgba(6,8,18,.8); color: #FFF; border: 1px solid #39415F;
  border-radius: 8px; padding: 6px 8px; font-size: 13px; max-width: 110px;
}
.cqb-select { max-width: 170px; }
.cqb-modal { position: fixed; inset: 0; z-index: 99980; display: none;
  background: rgba(4,5,12,.78); backdrop-filter: blur(3px); }
.cqb-modal.open { display: block; }
.cqb-sheet { position: absolute; inset: auto 0 0 0; top: 4vh;
  max-width: 1060px; margin: 0 auto; max-height: 94vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 16px 16px 40px;
  background: linear-gradient(170deg, #141126, #0A0F1E 55%);
  border: 1px solid rgba(245,197,66,.5); border-bottom: 0;
  box-shadow: 0 -8px 44px rgba(160,90,255,.3); color: #EDEBFF; }
@media (min-width: 760px) { .cqb-sheet { border-radius: 18px; top: 3vh; } }
.cqb-sheet h3 { color: #F5C542; margin: 16px 0 8px; font-size: 16px; }
.cqb-sheet h3:first-of-type { margin-top: 4px; }
.cqb-close { position: sticky; top: 0; float: right; z-index: 3; }
/* facility yard — 2.5D tilt */
.cqb-yard { perspective: 900px; margin: 8px 0 2px; }
.cqb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; transform: rotateX(14deg); transform-origin: top center; }
.cqb-fac { position: relative; border-radius: 13px; padding: 10px 11px 11px;
  background: linear-gradient(160deg, rgba(46,36,92,.95), rgba(16,14,34,.97));
  border: 1px solid rgba(178,107,255,.5); overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.cqb-fac.hq { border-color: rgba(245,197,66,.85);
  background: linear-gradient(160deg, rgba(92,66,20,.95), rgba(30,22,8,.97)); }
.cqb-fac .nm { font-weight: 800; font-size: 14px; display: flex; gap: 6px;
  align-items: center; }
.cqb-fac .lv { color: #F5C542; font-weight: 900; }
.cqb-fac .meta { font-size: 12px; color: #A7ACC2; margin: 4px 0 6px; line-height: 1.5; }
.cqb-state { font-size: 11px; font-weight: 800; border-radius: 6px;
  padding: 1px 7px; letter-spacing: .03em; }
.cqb-state.normal { background: rgba(87,227,137,.18); color: #7CF2A8; }
.cqb-state.damaged { background: rgba(245,197,66,.2); color: #FFD968; }
.cqb-state.severe, .cqb-state.disabled { background: rgba(255,77,79,.22); color: #FF9D9D; }
.cqb-state.repairing { background: rgba(96,165,250,.2); color: #9CC8FF; }
/* CSS smoke + flame for damaged facilities (no images) */
.cqb-fx { position: absolute; inset: 0; pointer-events: none; }
.cqb-fx .smoke { position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,200,215,.5), rgba(120,120,140,0) 70%);
  animation: cqbSmoke 3.2s ease-in-out infinite; }
.cqb-fx .smoke.s1 { width: 54px; height: 54px; right: 6px; top: -8px; }
.cqb-fx .smoke.s2 { width: 38px; height: 38px; right: 30px; top: 2px;
  animation-delay: 1.1s; }
@keyframes cqbSmoke { 0%,100% { transform: translateY(3px) scale(.9); opacity: .45; }
  50% { transform: translateY(-5px) scale(1.12); opacity: .8; } }
.cqb-fx .flame { position: absolute; bottom: -4px; width: 16px; height: 24px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 82%, #FFE9A8 0 22%, #FF7A45 55%, rgba(255,45,60,0) 78%);
  animation: cqbFlame .7s ease-in-out infinite alternate; }
.cqb-fx .flame.f1 { right: 14px; } .cqb-fx .flame.f2 { right: 34px; height: 17px;
  animation-delay: .3s; }
@keyframes cqbFlame { from { transform: scaleY(.82) skewX(-3deg); }
  to { transform: scaleY(1.14) skewX(3deg); } }
/* map markers (SVG) */
.cqb-marker { cursor: pointer; }
.cqb-marker .ring { fill: rgba(10,12,28,.82); stroke-width: 2.4; }
.cqb-marker .roof { fill: #F5C542; }
.cqb-marker text { fill: #FFF; font-weight: 800; paint-order: stroke;
  stroke: rgba(0,0,0,.65); stroke-width: 3px; }
.cqb-alertbox { border: 1px solid rgba(255,77,79,.65); border-radius: 12px;
  padding: 9px 12px; background: rgba(64,10,16,.35); margin: 8px 0;
  font-size: 13px; }
.cqb-log { font-size: 12.5px; color: #C9C6EA; line-height: 1.65; }
.cqb-log .lt { color: #8B90A5; }
.cqb-hero { display: flex; gap: 8px; flex-wrap: wrap; }
.cqb-hero .h { border: 1px solid #39415F; border-radius: 12px; padding: 6px;
  width: 86px; text-align: center; background: rgba(255,255,255,.04); }
.cqb-hero .h img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cqb-hero .h.on { border-color: #F5C542; box-shadow: 0 0 10px rgba(245,197,66,.4); }
.cqb-hero .h.lock { opacity: .45; }
.cqb-hero .h .hn { font-size: 11.5px; font-weight: 700; margin-top: 3px; }
